Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Search this Thread Display Modes
  #11 (permalink)  
Old December 1st, 2005, 02:16 AM
Authorized User
 
Join Date: May 2005
Location: pune, maharashtra, India.
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...

  #12 (permalink)  
Old December 1st, 2005, 02:19 AM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
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.

  #13 (permalink)  
Old December 1st, 2005, 02:54 AM
Authorized User
 
Join Date: May 2005
Location: pune, maharashtra, India.
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...


  #14 (permalink)  
Old December 1st, 2005, 07:47 AM
Authorized User
 
Join Date: May 2005
Location: pune, maharashtra, India.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
It worked...

Thanks a lot. :)

Regards,
Muskaan. :)

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 07:40 AM.


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