var in address bar

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hi,
I'm experimenting with VB.NET. And I want to access the variable in the
address bar and can't find a short answer on the internet. It concerns a
line like:
www.site.com?somevar=somecontent
How do I get the value of somevar?
Yes, I know I can use sessionvars but I already know how that works.
Thanx
Frank
 
Hi Frank,

This is a something classic method used by ASP (it is called the Get method)
are you sure you want to use that method?

Cor
 
* "Frank said:
I'm experimenting with VB.NET. And I want to access the variable in the
address bar and can't find a short answer on the internet. It concerns a
line like:
www.site.com?somevar=somecontent
How do I get the value of somevar?
Yes, I know I can use sessionvars but I already know how that works.

Are you talking about ASP.NET?
 
Frank said:
Hi,
I'm experimenting with VB.NET. And I want to access the variable in the
address bar and can't find a short answer on the internet. It concerns a
line like:
www.site.com?somevar=somecontent
How do I get the value of somevar?
Yes, I know I can use sessionvars but I already know how that works.
Thanx
Frank

ASP.Net Server-Side method is to use the request object.

Dim someVar As String = Request.QueryString("somevar")

Mythran
 
request.QueryString("variablename") this will return a string of what ever
the variable is set to with the =

variablename=value
 
Back
Top