Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Components
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 15th, 2006, 01:21 AM
Registered User
 
Join Date: May 2006
Location: , , .
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:)
  #2 (permalink)  
Old May 15th, 2006, 01:38 AM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Swetz
Default

hey i've got the answer.........
  #3 (permalink)  
Old May 15th, 2006, 01:49 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
  #4 (permalink)  
Old May 16th, 2006, 07:37 AM
Registered User
 
Join Date: May 2006
Location: , , .
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.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09:57 AM
response.redirect ava_h .NET Framework 2.0 0 October 18th, 2006 11: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 06:56 AM



All times are GMT -4. The time now is 05:15 AM.


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