Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.redirect doesn't work

Status
Not open for further replies.

611brain

Programmer
Feb 26, 2007
10
CA
Hi,

txt="asp"
txtlen=Len("txt")
for counter= 1 to txt

Session ("uname")=MID(uname,counter,1)

response.redirect("new.asp")

Next
_______________________________________________________

the output in new.asp page is different.

the output is : a
not:asp

please help me out
thanks
 
hey

sorry, actully this code:

txt="asp"
txtlen=Len("txt")
for counter= 1 to txt

Session ("txt")=MID(txt,counter,1)

response.redirect("new.asp")

Next
________________________________________________________

on new.asp page

i wrote it <%Response.Write(Session("txt")) %>
_______________________________________________________

the out put is different

the output is: a

not asp

thanks


 
Your loop counter limit should be txtlen, not txt. Also, since it redirects the first iteration through the loop, the loop will always only execute one time.

Lee
 
You have some funny tips for everyone in this forum 611brain.

[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top