Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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 July 13th, 2007, 11:56 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default redirect querystring with session value

I have to do a redirect with a querystring depending on a value store in a session, how can i include this value into the query string.
this is the code:

Session("graNum") = Request.QueryString("GrantNum")

Response.Redirect("page.asp?cmd=2&AwardNum=Session ("graNum")")

i cannot get the correct syntax to include the session value into the querystring.

thank you for your help.

 
Old July 16th, 2007, 07:06 AM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bishnupokhrel Send a message via Yahoo to bishnupokhrel
Default

Hi alxtech,

try the following

Response.Redirect( "page.asp?cmd=2&AwardNum=" & Session("graNum") )

regards,






Regards
Bishnu Pokharel
[email protected]
http://www.bishnupokharel.com.np/





Similar Threads
Thread Thread Starter Forum Replies Last Post
querystring + database + redirect animeshb Classic ASP Basics 1 February 14th, 2007 03:08 PM
Session Expired Redirect acdsky Classic ASP Basics 7 August 28th, 2006 03:24 AM
Session gets null on Response.Redirect Baby_programmer ASP.NET 1.x and 2.0 Application Design 2 March 11th, 2005 12:38 AM
Session Gets null on Response.Redirect Baby_programmer ASP.NET 1.0 and 1.1 Basics 1 March 8th, 2005 03:30 PM
Session gets Null on Response.Redirect Baby_programmer ASP.NET 1.0 and 1.1 Professional 0 March 3rd, 2005 01:57 AM





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