how is this done

  • Thread starter Thread starter Guest
  • Start date Start date
Mike said:
When I go to some web sites and click on a link the URL looks like this:

www.somewhere.com/something?varaible=something and that takes you to the
new
page.

what is the code behind this to make this work like this? www.msn.com has
links like this as well.

That is called a querystring. The URL (www.somewhere.com/something) and the
querystring(?variable=something).

The following is a sample code behind snippet:

Sub Form_Load(...)
Dim myVariable As String = Request.QueryString("variable")

Response.Write("variable = " & myVariable)
End Sub

That is how that works, does this answer your question?

Hope it does :)

Mythran
 
yeah but since no page is really defined how does it know what page to
redirect to?

i can response.redirect("?varaible=something") all day long but how is the
page defined to go to?
 
lookup examples on url rewriting. with unix its done with a script or progam
with no extension (just set the execute bit), with vanilla IIS its done with
a isapi filter, and .net will let you use an http module.

-- bruce (sqlwork.com)


| When I go to some web sites and click on a link the URL looks like this:
|
| www.somewhere.com/something?varaible=something and that takes you to the
new
| page.
|
| what is the code behind this to make this work like this? www.msn.com has
| links like this as well.
|
|
 
Well, first of all, you are in the wrong newsgroup for that question, so I
will give you the best answer I can and tell you the most appropriate
newsgroup. To access hotmail.com all you need to do is enter the following
URL into your browser:

http://www.hotmail.com/

You will then be asked to enter your email address and password on the login
page. If you are having trouble with this, or you recieve an error when you
enter you login info, make sure there is not a problem with your internet
connection (sometimes certain settings can cause a problem on specific
sites). For more information, I would recommend using the following
newsgroups:

microsoft.public.msn.discussion

Hopefully this will help you get what you need. If your son signed you up, I
would expect that he knows what to do, so you may want to talk to him as
well. Good Luck!
 
Back
Top