H
herman
Hi:
I have a datagrid and I've created a itemtemplate column with textbox
inside each row like the following:
<asp:TemplateColumn HeaderText="New NIBS DS1s">
<ItemTemplate>
<asp:TextBox ID="txtNewNIBSDS1" Runat="server" MaxLength="10"
Enabled="True" Visible="True" Width="200" ReadOnly="False"
Text=""></asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
However, when I goto the onclick event of that image button, I can't
read the text of the textbox. I read somewhere that I need to give
the image button a itemcommand, and make it bind to the datagrid so
that I can read the datagrid's data, how can I do that?
Thanks
I have a datagrid and I've created a itemtemplate column with textbox
inside each row like the following:
<asp:TemplateColumn HeaderText="New NIBS DS1s">
<ItemTemplate>
<asp:TextBox ID="txtNewNIBSDS1" Runat="server" MaxLength="10"
Enabled="True" Visible="True" Width="200" ReadOnly="False"
Text=""></asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
However, when I goto the onclick event of that image button, I can't
read the text of the textbox. I read somewhere that I need to give
the image button a itemcommand, and make it bind to the datagrid so
that I can read the datagrid's data, how can I do that?
Thanks