If ds1.Tables(0).Rows(i)(0).ToString().Substring(0, 3) = "txt" Then Dim lbl1 As New Label() lbl1.ID = "lbl1" + i.ToString() lbl1.Text = ds1.Tables(0).Rows(i)(1).ToString() lbl1.Text = lbl1.Text + ":" + " " myDiv.Controls.Add(lbl1) Dim MyTextBox As New TextBox() MyTextBox.ID = ds1.Tables(0).Rows(i)(0).ToString() myDiv.Controls.Add(MyTextBox) 'table = table & "<tr><td>" + ds1.Tables(0).Rows(i)(1).ToString() + "</td><td>" + MyTextBox.ID + "</td><td>" myDiv.Controls.Add(New LiteralControl("<br />")) 'table = table + "</table>" 'myDiv.InnerHtml = table div1.Attributes.Add("class", "button") End If If ds1.Tables(0).Rows(i)(0).ToString().Substring(0, 3) = "cbo" Then Dim lbl2 As New Label() lbl2.ID = "lbl2" + i.ToString() lbl2.Text = ds1.Tables(0).Rows(i)(1).ToString() lbl2.Text = lbl2.Text + ":" + " " myDiv.Controls.Add(lbl2) Dim ddl As New DropDownList() ddl.AutoPostBack = True 'ddl.Height = "27px" 'ddl.Width = "130px" ddl.ID = ds1.Tables(0).Rows(i)(0).ToString() ddl.DataSource = ds1.Tables(0).Rows(i)(0).ToString() ddl.DataBind() myDiv.Controls.Add(ddl) myDiv.Controls.Add(New LiteralControl("<br />")) div1.Attributes.Add("class", "button") End If
ds1.Tables(0).Rows(i)(0).ToString()), TextBox) how to insert all dynamicall values into db. i'm trying like this but problem is not resolved. can u send me related examples.....
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)