hi..
I have created dynamic controls with following codes. How to get values from that controls that checkbox is checked or not and also get values from textbox. Please reply as early as possible.
.aspx
<asp:Literal ID="ltMessageBoard" runat="server"></asp:Literal>
.cs
StringBuilder sb = new StringBuilder();
sb.Append("<table id='TableID' runat='server'>");
sb.Append("<tr>");
sb.Append("<th style='text-align:left;'><input type='checkbox' id='selectall'/> Select All</th>");
sb.Append("</tr>");
while (dr1.Read())
{
sb.Append("<tr>");
sb.Append("<td>");
sb.Append("<input type='checkbox' id='chk1' class='case' name='case'/> ");
sb.Append("<label id='lbl1'></lable>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("<tr>");
sb.Append("<td>");
sb.Append("<input type='text' id='txt1' style='width:500px; height:100px;text-align:top;' runat='server'/>");
sb.Append("</td>");
sb.Append("</tr>");
}
sb.Append("</table>");
ltMessageBoard.Text = sb.ToString();
SAMIR
Sr. Software Engineer