Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

Can any one help me?

I have taken a hyperlink in grid view and navigating to other form in which I need to get the details of that hyperlink.

How to give connection between this two gridviews?
Posted
Updated 3-Sep-10 6:59am
v2
Comments
Ankur\m/ 3-Sep-10 2:10am    
Is your HyperLink field bound to any data from the database? If yes, what is it?
Dalek Dave 3-Sep-10 12:59pm    
Edited for Grammar and removal of excessive '?'s

use querystring to achieve this....
 
Share this answer
 
Comments
Ankur\m/ 3-Sep-10 2:07am    
And how and what does he assign the querystring to? That is the difficult part.
senguptaamlan 3-Sep-10 2:09am    
thats a very initial phase of writing GridView and showing a master details for....a plenty of example can be found using Google :)
Ankur\m/ 3-Sep-10 2:10am    
Can you show an example?
Ankur\m/ 3-Sep-10 2:13am    
I know. The querystring can be assigned at RowDataBound event. But each row should have a different querystring value. Moreover on the other page he should be able to relate that value for the one it was use.
This can be done if his HyperLink field is bound to a database value.
senguptaamlan 3-Sep-10 2:16am    
go to the following link
http://csharpdotnetfreak.blogspot.com/2009/04/linkbutton-gridview-querystring.html
with out further information like Ankur\m/ is hinting at we can't really give you any good answers but we can give suggestions

look into things such as session objects and forming query strings in the hyperlinks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900