locked
how to redirect to another page from gridview in asp net without BoundField? RRS feed

  • Question

  • User-367318540 posted

    i am trying to redirect page using 

     <asp:TemplateField HeaderText="Ref_ID">
            <ItemTemplate>
            <%#Eval("Order_Ref_No") %>
    
            </ItemTemplate>
    
                   <FooterTemplate >
                    <asp:TextBox ID="txtaddorderref" runat="server"></asp:TextBox>
                </FooterTemplate>
               
                </asp:TemplateField>

    but Order_Ref_No is not fetched on another page ,if i used boundField ,then it working fine,,,,but i want to use itemtemplate field..

    Please Guide...

    Sunday, August 18, 2019 2:33 PM

Answers

  • User753101303 posted

    Hi,

    And the redirection was handled using a Select button and handling the corresponding event from which you retrieved the value ? It's a bit old but fairly sure it is not supposed to work out of the box without doing anything on your side. 

    And so what do you want now? My personal preference was to use hyperlink fields or controls directing directly to the targeted page.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, August 18, 2019 3:04 PM