I want to generate a column full of input text boxes inside a table.
At present, i generate my table dynamically from C# through StringBuilder.
sb.Append("<tr><td>" + item[0].ToString() + "</td><td>" + item[1].ToString() +
"</td><td>" + item[2].ToString() + "</td><td>" + item.GetString(3) + "</td><td>" +
item.GetDecimal(4) + "</td><td>"+ "<input type=\"text\" class=\"input-mini\"
columns=\"1\" name=\"ids\" ID= 'textbox" + i + "' /></td></tr>");
I understand that i can get the input values via jquery and pass it to C# method, but is there a more simpler way to achieve the same?
EDIT: To show Form Handling
for (int element = 0; element <= totalelements; j++)
{
toList.Add(Request.Form["'textbox" + element + "'"]);
}
.aspx page (This button's visibility is toggled by a div)
<asp:Button runat="server" CssClass="btn" Height="27px" Width="190px" OnClick="doSomething" ID="do" Text="Send" />