p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Professional (http://p2p.wrox.com/forumdisplay.php?f=57)
-   -   Selecting a particular item in Datagrid (http://p2p.wrox.com/showthread.php?t=35545)

muskaanbajaj December 1st, 2005 02:16 AM

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...


jbenson001 December 1st, 2005 02:19 AM

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


muskaanbajaj December 1st, 2005 02:54 AM

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...



muskaanbajaj December 1st, 2005 07:47 AM

Hi,
It worked...

Thanks a lot. :)

Regards,
Muskaan. :)



All times are GMT -4. The time now is 06:17 AM.

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