日期:2014-05-17 浏览次数:20558 次
if (templateType == "txt")
{
TextBox txtBox = new TextBox();
}
else if(templateType == "ddl")
{
DropDownList dropDownList = new DropDownList();
}
protected void gvMaster_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#cdebed'");
e.Row.Attributes.Add("onmousedown", " if (c!='#cdebed'){b=c;this.style.backgroundColor='#cdebed';c='#cdebed'}else {c=b}");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
}
}
public string GetSubListPage(int pageIdx)
{
StringBuilder sbUrlTmp = new StringBuilder();
Model.View_SubList sbList = new View_SubList();
int pageCount = 0;
DataTable dt = GetSubListAndCount(pageIdx, out pageCount);
sbUrlTmp.Append("<table id='tableTastList'><tr>");
&nbs