accessing sessionstate variable from a seperate webpart assembly

  • Thread starter Thread starter Arno
  • Start date Start date
A

Arno

I have create a webpart portal with a custom catalogpart that can instanciate
a webpart from a dll.

The webpart.DLL is a dll library with a classed inherited from
System.Web.UI.WebControls.WebParts.WebPart

I can successfully create the part and show it on my portal, except I can't
seem to get acces to the users sessionstate variables.

I mean I can't get:

prodID = session("prodID") to work.

I'm not using Sharepoint; just plain ASP.NET with framework 3.5 and AJAX.

Can anyone point me in the right direction?
 
Hi Arno,

System.Web.HttpContext.Current.Session["prodID"]

but i think you should expose a property from you web part rather than
assuming soemthing is set in session.

Regards
 
Back
Top