Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Developed a number of Web Parts that share some properties

  Asked By: Janet Fields         Date: Oct 29, 2009      Category: Sharepoint      Views: 191
 

I've developed a number of Web Parts that share some properties (connection
strings, web service URL's, etc.). Rather than have an admin have to set the
same properties on all the various Web Parts to the same value what strategy
would be recommended for storing the these values and then accessing them from
within the Web Parts? I'm thinking of something along the lines of ASP.NET
session/application variables...is there something built into Sharepoint that
would allow me to do this?

Tagged:                  

 

2 Answers Found

 
Answer #1       Answered By: Alan West          Answered On: Oct 29, 2009       

I believe if you look, Session State is turned off by default. I guess
you could turn it on and use it. I would suggest that you use the
web.config file and pull from there.

 
Answer #2       Answered By: Maribel Todd          Answered On: Oct 29, 2009       

Session state is turned off by default by design in SPS/WSS - I'd suggest you
use this only as a last resort, as it can have some nasty side effects if you
are not careful...

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].