Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 15th, 2006, 12:21 AM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Swetz
Default how to post variable on response.redirect?????

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:)
 
Old May 15th, 2006, 12:38 AM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Swetz
Default

hey i've got the answer.........
 
Old May 15th, 2006, 12:49 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old May 16th, 2006, 06:37 AM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Swetz
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
response.redirect sarah lee ASP.NET 1.0 and 1.1 Basics 1 October 27th, 2006 08:57 AM
response.redirect ava_h .NET Framework 2.0 0 October 18th, 2006 10:21 PM
response.redirect crmpicco Classic ASP Basics 3 February 9th, 2005 01:50 AM
passing a variable using response.redirect katie456 Classic ASP Databases 3 January 20th, 2004 02:35 AM
Response.Redirect dhborchardt Classic ASP Basics 4 June 16th, 2003 05:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.