Subject: how to post variable on response.redirect?????
Posted By: Swetz Post Date: 5/15/2006 12:21:36 AM
Hi,

i would like to know a way to pass dynamic variable(whose value is not known untill the execution ) by response.redirect method.

my code is like:

<%
dim rePid
rePid=Request.QueryString("pid")
Response.Redirect("next_page.asp?spid=rePid")
%>

Please its urgent....Any suggestion would be highly appreciated.

Sweta



Reply By: Swetz Reply Date: 5/15/2006 12:38:20 AM
hey i've got the answer.........
Reply By: mat41 Reply Date: 5/15/2006 12:49:26 AM
Swetz

I would do it just how you have and can not see an error in your method.  

In future if you create a post and solve it, post the solution.  The next person seraching this forum for answers will then see your problem and solution - at this point they can only see the problem.

Wind is your friend
Matt
Reply By: Swetz Reply Date: 5/16/2006 6:37:53 AM
Thanx Matt. Next time onwards I will post the solution as well.

What I did was-

<%
dim rePid
rePid = Server.URLEncode(Request.Querystring("pid"))
Response.Redirect "newpage.asp?pid=" + Server.HTMLEncode(rePid)
%>

It worked perfectly for me.

Go to topic 43788

Return to index page 286
Return to index page 285
Return to index page 284
Return to index page 283
Return to index page 282
Return to index page 281
Return to index page 280
Return to index page 279
Return to index page 278
Return to index page 277