Templatefield usage in asp.net RRS feed

  • Question

  •   <asp:TemplateField HeaderText="Region">


                            <asp:Label ID="lblItem" Text='Region' runat="server"></asp:Label><br /><br />
                               <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true"></asp:TextBox>


                                <asp:Label ID="lblItem0" Text='<%# Eval("Region") %>' runat="server"></asp:Label>


     TextBox q1 = (TextBox)GridView1.FindControl("TextBox1");

    I tried even with headerrow search and also by mentioning rows and row index 
                cmd.Parameters.Add("@Region", SqlDbType.NVarChar).Value = q1.Text;

    Textbox always shows null value can anyone help me out thanks

    Monday, December 28, 2015 7:32 PM

All replies