473,385 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

PostField and Variable names

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=sClie ntNo")

thank you in advance
serge

Jul 19 '05 #1
2 1391
Ok,

Forget about it, I found...

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

serge
Serge Myrand wrote:
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=sClie ntNo")

thank you in advance
serge


Jul 19 '05 #2
Thank's
serge

StephenMcC wrote:
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....
ASP Page 1 << 'Add response info via redirect
Dim sClientNo, sURL
sClientNo = 321
sURL = "ASP_Page_2.asp?ClientNo=" & sClientNo
Response.Redirect(sURL)
ASP Page 2 <<

'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
.

"Serge Myrand" wrote:
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=sClie ntNo")

thank you in advance
serge


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: uitbundig | last post by:
I am writing a function as listed below. My problem is that this form passes only the variable 'state' and not the others. Can somebody help me? Thanks, Gustaaf function...
83
by: Alexander Zatvornitskiy | last post by:
Hello All! I'am novice in python, and I find one very bad thing (from my point of view) in language. There is no keyword or syntax to declare variable, like 'var' in Pascal, or special syntax in...
3
by: Matt | last post by:
<% hour = Request("controlname") %> will yield the following error: Microsoft VBScript runtime (0x800A01F5) Illegal assignment: 'hour' However, if I declare hour, then it is fine. <% Dim...
7
by: ben | last post by:
hello, an algorithm book i'm reading talks about the connectivity problem/algorithm. it gives a number of examples where the connectivity problem applies to real life situations (like, the...
18
by: Carramba | last post by:
Hi! I am wondering what is the best way to control that compiler manage variable names longer then 8 signs. Does it enought to set 2 variables with the same name and difference after 8 sign and...
5
by: glenn | last post by:
Hi folks, The problem I have is that a query string works if hard-coded but if I pass a variable to it, it does not work as shown here. This works: querystring="SELECT * FROM USERS WHERE...
16
by: John | last post by:
Does the length of my C variable names have any affect, performance-wise, on my final executable program? I mean, once compiled, etc., is there any difference between these two: number = 3; n =...
4
by: Victor Lagerkvist | last post by:
Hello, I have the need to parse variable names from a string and save them somewhere safe for future usage. Here's my first attempt (I don't have any rules for valid names yet) - but I have a...
2
by: Tom | last post by:
I have a textbox on my web form were users can enter in 1 name or many names. The form then validates the name against the database. If the name is valid its then saved into a varaible to be used at...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.