I have a gridview with a textbox that users can enter information into
But I can't seem to access the information entered
gridText always returns as Nothing, can anyone shed some light on this, I'm probably doing something very basic that is wrong.
Code:
<asp:TemplateField HeaderText="Filter Text">
<ItemTemplate>
<asp:TextBox ID="CriteriaTextBox" runat="server" EnableViewState="true"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
But I can't seem to access the information entered
Code:
Dim gridText As TextBox
gridText = CType(GridView1.Rows(0).FindControl("CriteriaTextBox"), TextBox)
gridText always returns as Nothing, can anyone shed some light on this, I'm probably doing something very basic that is wrong.