469,927 Members | 1,312 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

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
Jan 7 '08 #1
3 1388
Frinavale
9,735 Expert Mod 8TB
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?
Jan 7 '08 #2
ya i want link button
Jan 8 '08 #3
Frinavale
9,735 Expert Mod 8TB
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.Redirect("newPage.aspx") or Server.Transfer("newPage.aspx") to display the next page.

-Frinny
Jan 8 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by David | last post: by
1 post views Thread by Evan M. | last post: by
4 posts views Thread by =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post: by
1 post views Thread by Paul W Smith | last post: by
1 post views Thread by suganya | last post: by
1 post views Thread by Author | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.