Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LinkButton/querystring question

Status
Not open for further replies.

Garreth21

Programmer
May 19, 2005
29
Hi everybody,

I have a datagrid that displays products. The product name is a link button. When the link is clicked it opens up a new window to display product details.

Right now I append the details to the page link and then use query string on the pop up page to get the information. It works, but I'd perfer to use something other then query string to pass the data. It's more of a personal preference thing to not use query string method. What options do I have?
 
You can pass an ID of the product, and on the popup, query the db for that ID and display.

Jim
 
Hi Jim,

Thanks for the reply. I had thought of that, but thought it might be better to get the info in one db query rather then two, but that might be the best way to solve my problem. Would you pass the ID in a query string?
 
Yes you can pass the ID in the query string. You can also pass the values using session variables if you don't have too many. This way you only have one DB query.

Jim
 
Alternatively, you could use the cache


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top