日期:2014-05-16 浏览次数:20945 次
TextBox txtXuhao { get; set; }
DropDownList dptea { get; set; }
TextBox txtBegin { get; set; }
TextBox txtEnd { get; set; }
TextBox txtCode { get; set; }
//动态生成控件
public void CreateControl()
{
if (ViewState["CreateControl"] == null) return;
int claId = Convert.ToInt32(Request.QueryString["claID"]);
DataSet dsDeta = tb.ShowClassDetail(claId);
TableRow row1 = new TableRow();
TableCell cell1 = new TableCell();
Label la = new Label();
la.Text = "班次序号";
la.Width = 82;
Label la2 = new Label();
la2.Text = "老师";
la2.Width = 125;
Label la3 = new Label();
la3.Text = "上课开始时间";
la3.Width = 210;
Label la4 = new Label();
la4.Text = "下课结束时间";
la4.Width = 210;
Label la5 = new Label();
la5.Text = "课程代码";
la5.Width = 200;
cell1.Controls.Add(la);
cell1.Controls.Add(la2);
cell1.Controls.Add(la3);
cell1.Controls.Add(la4);