G
George Ter-Saakov
I am showing a table using repeater control and template for row has a
<asp:TextBox id=txtQuantity runat="server">
Where do i keep the record id in database for that row? Should i create the
hidden field for each row or is there better solution?
so later i could update it in the database.
Here is the code
private void btnUpdate_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
foreach( RepeaterItem objItem in Repeater1.Items )
{
TextBox txtBox = objItem.FindControl("txtQuantity");
//need record id for an update?????
}
}
Thanks.
George.
<asp:TextBox id=txtQuantity runat="server">
Where do i keep the record id in database for that row? Should i create the
hidden field for each row or is there better solution?
so later i could update it in the database.
Here is the code
private void btnUpdate_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
foreach( RepeaterItem objItem in Repeater1.Items )
{
TextBox txtBox = objItem.FindControl("txtQuantity");
//need record id for an update?????
}
}
Thanks.
George.