HyperLink in GridView
-
I add hyperlink in gridview and i pass the navigationURL for this hyperlink but i want to send the rowindex of the gridview in session when i click this hyperlink HOW CAN I DO THIS? thanks for help
MD_NADA
-
I add hyperlink in gridview and i pass the navigationURL for this hyperlink but i want to send the rowindex of the gridview in session when i click this hyperlink HOW CAN I DO THIS? thanks for help
MD_NADA
Hi MD_Nada, Can you post your navigationURL that you are passing in the hyperlink? In the meantime: You can send your rowindex id in the URL string itself. For eg: you want to access myhyperlinkpage.aspx your URL string will be - http://xyz/myhyperlinkpage.aspx?id={0} , this will pass the id or the rowindex of that row. Also, do not forget to add your id or primary key of your table in the 'DataKeyNames' property of your gridview. If this explanation is not too clear, kindly post your URL.
Aartee. ...HE is watching Us All!
-
Hi MD_Nada, Can you post your navigationURL that you are passing in the hyperlink? In the meantime: You can send your rowindex id in the URL string itself. For eg: you want to access myhyperlinkpage.aspx your URL string will be - http://xyz/myhyperlinkpage.aspx?id={0} , this will pass the id or the rowindex of that row. Also, do not forget to add your id or primary key of your table in the 'DataKeyNames' property of your gridview. If this explanation is not too clear, kindly post your URL.
Aartee. ...HE is watching Us All!
thanks for ur help
MD_NADA