M
mazdotnet
Hey guys,
I'm using ASP.NET 2.0 GridView for the first time. I have the following
setup
On the .aspx side I have this in my GridView
<asp:TemplateField HeaderText="New">
<ItemTemplate>
<%# Eval("New")%>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="tbxNew"
runat="server" Text='<%# Eval("New")%>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
and when I .cs side I have this
protected void gvLicenseSplit_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
GridViewRow row = gvLicenseSplit.Rows[e.RowIndex];
TextBox t = (TextBox)row.FindControl("tbxNew");
Response.Write("The Text Entered is" + t.Text);
}
The value of tbxNew is always empty. Could someone please help me with
this?
Thanks
M.
I'm using ASP.NET 2.0 GridView for the first time. I have the following
setup
On the .aspx side I have this in my GridView
<asp:TemplateField HeaderText="New">
<ItemTemplate>
<%# Eval("New")%>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="tbxNew"
runat="server" Text='<%# Eval("New")%>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
and when I .cs side I have this
protected void gvLicenseSplit_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
GridViewRow row = gvLicenseSplit.Rows[e.RowIndex];
TextBox t = (TextBox)row.FindControl("tbxNew");
Response.Write("The Text Entered is" + t.Text);
}
The value of tbxNew is always empty. Could someone please help me with
this?
Thanks
M.