gridview hyperlink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peerraghu
    New Member
    • Nov 2007
    • 30

    gridview hyperlink

    hi,right now i creating travel project using asp.net 2005 and c#
    i can populate all the columns in the datagridview and even i am able to give hyprelink to paticular column but my problem is every time when i click it is redirecting to the same page, i want to display different page after clicking different hyperlink and if we want to insert another value in the datagridview it should automatically give hyper link to different page with respect to the value in the datagridview.
    its very urgent
    thank you very much
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by peerraghu
    hi,right now i creating travel project using asp.net 2005 and c#
    i can populate all the columns in the datagridview and even i am able to give hyprelink to paticular column but my problem is every time when i click it is redirecting to the same page, i want to display different page after clicking different hyperlink and if we want to insert another value in the datagridview it should automatically give hyper link to different page with respect to the value in the datagridview.
    its very urgent
    thank you very much
    Are you using link buttons instead of simple html hyperlinks?

    Comment

    • peerraghu
      New Member
      • Nov 2007
      • 30

      #3
      ya i want link button

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by peerraghu
        ya i want link button
        Since you are using LinkButtons, your user is not automatically redirected to the page that the hyperlink is pointing to. Instead, your server side code is called to handle the clicking of the LinkButton.

        In the method that handles this event, you should use Response.Redire ct("newPage.asp x") or Server.Transfer ("newPage.aspx" ) to display the next page.

        -Frinny

        Comment

        Working...