aspx variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone tell me how do I retrieve a variable sent the following way in the
page requested

webaddress/page.aspx?varName=someValue
I know how to retrieve it in .asp; i just wonder if this is the same case
with asp .net
I want to retrieve it so that I can use it on page.aspx
 
They are the same for this (asp and asp.net).

Have A Better One!

John M Deal, MCP
Necessity Software
 
Hi Armando,

Not much different. Try this:


Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Response.Write(Request.QueryString("varName"))
End Sub

Ken
MVP [ASP.NET]
 
Thank you very much.
I apreciate it


Ken Cox said:
Hi Armando,

Not much different. Try this:


Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Response.Write(Request.QueryString("varName"))
End Sub

Ken
MVP [ASP.NET]


Armando Ruiz said:
Can anyone tell me how do I retrieve a variable sent the following way in
the
page requested

webaddress/page.aspx?varName=someValue
I know how to retrieve it in .asp; i just wonder if this is the same case
with asp .net
I want to retrieve it so that I can use it on page.aspx
 
Back
Top