Thanks!! Bullschmidt. So your solution is to pass data by query string, and
it must use SUBMIT button and choose GET or POST protocol. Right?
When we post form fields (GET or POST protocol), we need to use submit
button, and it will send the form to the server for each click of submit
button. And we can't use regular button. Correct?
page1.asp
<form action="page2.asp" method="get">
<P>First Name: <input type="text" name="fname">
<P>Last Name: <input type="text" name="lname">
<P><input type="submit">
</form>
page2.asp
<P>first name from page1.asp = <% Request.QueryString("fname") %>
<P>Last name from page1.asp = <% Request.QueryString("lname") %>
In this example, page1.asp will send the form to the IIS for request on
page2.asp, and page2.asp is the response page. That means it will go through
the server anyway. Is it possible not going through the server, but just
page1.asp and page2.asp interactions???
Please advise. thanks!
"Bullschmidt" <pa**@bullschmidt.com-nospam> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Generally speaking you can pass variables from page to page on the same
Web site by:
1) Posting form fields from one page to the next (or to the same page)
and on the page to retrieve the value strLName = Request.Form("LName")
2) Using a querystring such as Response.Redirect
"login.asp?lname=smith&fname=tom" and on the page to retrieve the values
strLName = Request.QueryString("lname") and strFName =
Request.QueryString("fname")
3) Using session variables such as Session("LName") = "Smith" and on the
page to retrieve the value strLName = Session("LName")
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!