protected void Page_Load(object sender, EventArgs e) { GenerateControll(); }
var n = (from a in db.Parameters where a.fk_OrderTypeID == OrderTypeID orderby a.CodeID select a); foreach (var coll in n) { if (coll.fk_ParameterTypeID == 1 || coll.fk_ParameterTypeID == 6) { Label lblKKK = new Label(); lblKKK.ID = "lbl" + coll.ParameterID; lblKKK.CssClass = "LabelMargin"; lblKKK.Text = coll.ParameterTitle; TextBox txtKooft = new TextBox(); txtKooft.ID = "txt" + coll.ParameterID; txtKooft.CssClass = "inputMargin"; if (coll.fk_ParameterTypeID == 6) { txtKooft.TextMode = TextBoxMode.MultiLine; } Session.Add(coll.ParameterID.ToString(), txtKooft); pnlForm.Controls.Add(lblKKK); pnlForm.Controls.Add(txtKooft); } } }
if (Session["19"] != null) { TextBox t = (TextBox)Session["19"]; string tID = t.ID; string lll = t.Text; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)