p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   Classic ASP Components (http://p2p.wrox.com/classic-asp-components-68/)
-   -   how to post variable on response.redirect????? (http://p2p.wrox.com/classic-asp-components/42536-how-post-variable-response-redirect.html)

Swetz May 15th, 2006 01:21 AM

how to post variable on response.redirect?????

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

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


Swetz May 15th, 2006 01:38 AM

hey i've got the answer.........

mat41 May 15th, 2006 01:49 AM


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

Swetz May 16th, 2006 07:37 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.

All times are GMT -4. The time now is 10:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.