troubleshooting Question

Set a session key based on Drop down list selection [C# ASP.NET 2005]

Avatar of mick2007
mick2007 asked on
ASP.NET
3 Comments1 Solution307 ViewsLast Modified:
Hi, I'm trying to transfer Session Variables from ASPX to ASPX
by setting a session key value 'Site' to a value selected from a drop down list.

I'm using the following snippet:
Session["Site"] = this.uiSiteDDL.SelectedValue;
Response.Write(Session["Site"]);

But it is setting the value Site to the first or default value in the list rather than the one I select..
Any ideas?
Thx
Mic
ASKER CERTIFIED SOLUTION
jbarber2005

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros