venuchalla
Programmer
Hello,
I am having a gridview which has records from more than one tables.
id,description and tablename are the columns.
I also have a hyperlinkfield as one of the columns.
on click of this hyperlinkfield I need to show the complete record with that purticular id in that purticular tablename.
I have written the querystring like this
-------------------------------------------
NavigateUrl="SearchDetails.aspx?id=idvalue&tablename=tablenamevalue"
-------------------------------------------
on the searchdetails.aspx page i have written
-------------------------------------------
string str=Request.QueryString["id"];
string str1 = Request.QueryString["tablename"];
string searchDetails="Select * from tablename =" +str1 +" where Id="+str;
-------------------------------------------
I am not able to get the id , or the tablename to the nextpage.
Can anyone of you please say where I am doing wrong, how to get the values to be passed to the searchdetailspage.
Thanks in advance
I am having a gridview which has records from more than one tables.
id,description and tablename are the columns.
I also have a hyperlinkfield as one of the columns.
on click of this hyperlinkfield I need to show the complete record with that purticular id in that purticular tablename.
I have written the querystring like this
-------------------------------------------
NavigateUrl="SearchDetails.aspx?id=idvalue&tablename=tablenamevalue"
-------------------------------------------
on the searchdetails.aspx page i have written
-------------------------------------------
string str=Request.QueryString["id"];
string str1 = Request.QueryString["tablename"];
string searchDetails="Select * from tablename =" +str1 +" where Id="+str;
-------------------------------------------
I am not able to get the id , or the tablename to the nextpage.
Can anyone of you please say where I am doing wrong, how to get the values to be passed to the searchdetailspage.
Thanks in advance