Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 December 1st, 2005, 02:16 AM
Authorized User
 
Join Date: May 2005
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No the query string variables wont differ.
They will be same for each of the 5 URLs passed.
And, Session Variables will have to defined in Global.asax file. Is it?
Or my sender page?? And do i have to code it in Datagrid ItemCommad event?

I m trying using them...

 
Old December 1st, 2005, 02:19 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You can code the session variables anywhere in the sending page. I would suggest the Page_Load event.

 
Old December 1st, 2005, 02:54 AM
Authorized User
 
Join Date: May 2005
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have coded the following way in SENDER's Page_Load Event:
Dim compname as string
Dim countryname as string

Session(compname)=cmbcompany.SelectedValue
Session(countryname)=cmbcountry.SelectedValue

And retrieving it in RECEIVER's Page_Load Event the following way:

Dim comp, country as string
comp = Session(compname)
country = Session(countryname)

But here, am getting syntactical error that compname and countryname are not declared.
ie m not able to access the session variables in receiver's page...

Can u tell me whats d prb...


 
Old December 1st, 2005, 07:47 AM
Authorized User
 
Join Date: May 2005
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
It worked...

Thanks a lot. :)

Regards,
Muskaan. :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting DropDownList Item yes_no ASP.NET 1.0 and 1.1 Professional 1 April 8th, 2008 08:00 AM
problem selecting listview item method Visual C++ 0 July 7th, 2006 04:06 PM
Selecting a ListView item bmains Pro VB.NET 2002/2003 0 January 22nd, 2005 11:19 PM
Selecting an Item from a databound listbox nyclimber ASP.NET 1.0 and 1.1 Professional 4 May 25th, 2004 03:24 PM





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