Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Developed a number of Web Parts that share some properties

  Asked By: Janet    Date: Oct 29    Category: Sharepoint    Views: 1056

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?



2 Answers Found

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

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

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