PostField and Variable names

S

Serge Myrand

Hi,

I am new to ASP and I cannot figure out how to pass variable content in
ASP.

How to pass the variable sClientNo in the following redirect.

Response.Redirect("AccessDenied.asp?ClientNo=sClientNo")

thank you in advance
serge
 
S

Serge Myrand

Ok,

Forget about it, I found...

Response.Redirect("AccessDenied.asp?ClientNo=" & sClientNo)

serge
 
S

Serge Myrand

Thank's
serge
Hi,

In ASP when you want to pass info between pages u want to use the inbuilt response/request objects, response when you want to add response header info and request when you want to retrieve response info sent.

The example you posted myt look something like....

'Add response info via redirect
Dim sClientNo, sURL
sClientNo = 321
sURL = "ASP_Page_2.asp?ClientNo=" & sClientNo
Response.Redirect(sURL)

'Get sent response info via request object
Dim sClientNo
sClientNo = Request.QueryString("ClientNo")

Response.write "ClientNo = " & sClientNo

This is just the tip of the ice-berg, as they say, there's a whole lot more u can do with the response/request (and other ASP in-built) object's.

Hope this helps.

Stephen
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,413
Latest member
KeiraLight

Latest Threads

Top