2014年7月13日 星期日

[RESOLVED] querystring


Good day all,


I have a grid view that has columns like Customer number, name, age and contact.


How can I use a querystring so that when i click on a column like the customer number it will take me to another page that contains detailed information about the customer.


Thanks



You could use a hyperlink for that column and bind the url to the target page including the customer number as a querystring. 



Add HyperLinkField column, set DataTextField ="CustNo" DataNavigateUrlFields="CustNo" DataNavigateUrlFormatString = "Detail.aspx?CustNo={0}" then in Detail.aspx use DetailsView to display the details information based querystring CustNo.

Thanks for your reply. But I dont want to use the details view because i would be calling different forms like total purchases and other stuff in a gridview. How can i access the particular custno in the query string to access the data for the particular
custno in the other gridview in the details.aspx.


Thanks



Thanks for your reply. But I dont want to use the details view because i would be calling different forms like total purchases and other stuff in a gridview. How can i access the particular custno in the query string to access the data for the particular
custno in the other gridview in the details.aspx.


Thanks


沒有留言:

張貼留言