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!

Can I use links on a master pages with & query strings?

Status
Not open for further replies.

R7Dave

Programmer
Oct 31, 2007
181
US
Hello

I'm using master pages with a login - I'm storing the member ID in the query string and have a side bar with links. The side bar is part of the master page.

How can the links in my sidebar access the querystring? Or do I need to use session variables?

In other words, if my code below is in a master page, can it access a query string?

<a href="memberpage.aspx"
target="_self">Back to my member page</a>

Thank you in advance
Dave
 
I'm a bit confused by the question. There is a code-behind page to the master page in which you can access the querystring and then do withit what you want.
 
I tried using the code-behind page to the master page months ago and it caused a lot of errors - I'm going to put the links on my content page and only use the master page for text and images. I thought about it more after I posetd to tek-tips.

Thanks for replying
Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top