Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Asp.net Web Pages Help


  • Please log in to reply
1 reply to this topic

#1 milzee

milzee

  • Members
  • 108 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:11:46 PM

Posted 19 May 2006 - 10:34 PM

Like on the msn.com and other websites, how would i put the options in with the ? option with ASP.NET web pages ... i.e. http://office.microsoft.com/default.aspx?ln=en-au .. im interested in working that out for my own asp.net web pages, as i want the one web page but i can display different information with the ? switch.

BC AdBot (Login to Remove)

 


#2 ColdinCbus

ColdinCbus

  • Members
  • 312 posts
  • OFFLINE
  •  
  • Local time:11:46 AM

Posted 22 May 2006 - 01:22 PM

You would use request.querystring

For example url?switchvar=var

and then you would set a series of if var = whatever the number is, do this:

<%

			if Request.QueryString("switchvar") = "1" then

						Response.Write "do whatever here"

			end if
 
			if Request.QueryString("switchvar") = "2" then

						Response.Write "do what you want var 2 to do here"

			end if

%>

Edited by ColdinCbus, 22 May 2006 - 01:23 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users