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 --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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