PC Review


Reply
Thread Tools Rate Thread

accessing sessionstate variable from a seperate webpart assembly

 
 
Arno
Guest
Posts: n/a
 
      4th Sep 2008
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?
 
Reply With Quote
 
 
 
 
Milosz Skalecki [MCAD]
Guest
Posts: n/a
 
      4th Sep 2008
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
--
Milosz


"Arno" wrote:

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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing SessionState in Application_Error Nemisis Microsoft ASP .NET 10 15th Mar 2007 04:09 PM
Accessing private assembly from shared assembly utanka Microsoft Dot NET Framework 1 9th Jun 2006 12:23 PM
Accessing a user's Outlook Calendar via a sharepoint webpart possible? Jack Microsoft Outlook Calendar 0 24th May 2006 07:45 AM
Sum cells based on a row variable and seperate column variable =?Utf-8?B?Q2hlZXNlSGVhZFRyYW5zcGxhbnQ=?= Microsoft Excel Worksheet Functions 10 23rd Sep 2005 06:59 PM
re: Accessing form values of a webpart Jim Buyens Microsoft Frontpage 3 26th Jan 2004 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:11 PM.