I'm trying to build a web part, for sharepoint, which will read values from a
configuration file. Is this possible (Using visual studio 2003)?
I've developed a test web part, currently it just displays some text. I've
added some code to read from a configuration file and while the text is
displayed, no configuration value comes through. Even when I deliberately
try a configuration key, that I know doesn't exist, it still runs and
displays the literal text only.
The 3 lines of code, from my RenderWebPart are:-
string t = "";
t =ConfigurationSettings.AppSettings["eMISConnecxtion"];
output.Write(SPEncode.HtmlEncode ("xofficeValue from configuration file =
" + t + "end of configuration value"));
thanks