Re: my.settings website
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Fri, 20 Oct 2006 08:30:47 -0400
My.Settings doesn't apply to Web Applications.
See a chart which shows the applicable project types for each My object:
http://msdn2.microsoft.com/en-us/library/ms172698.aspx
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"HaVoK" <hauser.benni@xxxxxxxxxxxxxx> wrote in message
news:1161326682.336740.60060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
i am developing a website and want to use the connectionstring of my
web.config in other sites.
i have a connectionstring in my web.config like this:
<configuration>
<appSettings/>
<connectionStrings>
<add name="Test.My.Settings.conni" connectionString="*******"
providerName="System.Data.SqlClient" />
</connectionStrings>
i have found a lot of examples for windows applications like this.
connection = My.Settings.conni
but the parameter My.Settings is not available in my Website-Project.
only my.user, e.g.
How can i use this connection in my Website? is there any way?
Best regards
Benjamin
.
- References:
- my.settings website
- From: HaVoK
- my.settings website
- Prev by Date: Re: Warning - AVOID SESSION VARIABLES
- Next by Date: Re: Warning - AVOID SESSION VARIABLES
- Previous by thread: my.settings website
- Next by thread: Re: my.settings website
- Index(es):
Relevant Pages
|