I am trying to read it into a static var to be more efficient.

 

Travis D. Falls 

-----Original Message-----
From: Gary Pupurs [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 04, 2004 6:49 PM
To: [EMAIL PROTECTED]
Subject: Re: [AspNetAnyQuestionIsOk] Global.asax connection storage

 

If that property is part of the Global class in global.asax, you can get to
it from any page in the application by just typing eg, conn = new
SqlConnection(Global.connectionString);...

----- Original Message ----- 
From: "Falls, Travis D (HTSC, CASD)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 04, 2004 3:47 PM
Subject: [AspNetAnyQuestionIsOk] Global.asax connection storage



I am trying to retrieve my connectionString info from the web.config file at
application startup.  I have done it as follows:
connectionString
=ConfigurationSettings.AppSettings.Get("DEV_RAFTLOG_ConnectionString");

connectionString is defined as static protected String connectionString;

I would like to then use this String in my application, how do I reference
it? Or can't I?








Yahoo! Groups Sponsor



ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=129o5dgn9/M=294855.5468653.6549235.3001176/D=gr
oups/S=1705006764:HM/EXP=1097016532/A=2376776/R=0/SIG=11ldm1jvc/*http:/promo
tions.yahoo.com/ydomains2004/index.html> click here


 
<http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S=
:HM/A=2376776/rand=501992138> 

 

  _____  

Yahoo! Groups Links

*         To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
  

*         To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
e> 
  

*         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
<http://docs.yahoo.com/info/terms/>  Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to