Re: my.settings website

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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




.



Relevant Pages

  • Re: Database Connection - Development to Production
    ... The config files are the way to go for all of my ASP.NET applications. ... Soon I will be making a post dedicated to converting classic ASP ... Storing connectionString in dll itself is ok. ...
    (microsoft.public.dotnet.general)
  • Re: Penetrating a PC through a printer device
    ... > compromise the connected target PC if you gained control of the printer? ... Audit your website security with Acunetix Web Vulnerability Scanner: ... Hackers are concentrating their efforts on attacking applications on your ... Cross site scripting and other web attacks before hackers do! ...
    (Pen-Test)
  • Re: Asp.Net 2.0 Multiple Application Solutions
    ... Businesslogic layer and added a method for returning the connectionstring. ... fact that administrators have certian roles and clients do not. ... > frontend user and backend admin, and admin can access those pages that ... > formsauthentication methods in one website. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Morfik - amazing!
    ... we have deployed IW applications. ... I'm really digging ExtJS with a minimal backend server. ... from desktop to website, website to desktop, website to website. ... comfortable for the Delphi developer, but I think it's worth it. ...
    (borland.public.delphi.non-technical)
  • Acunetix Web Vulnerability Scanner 4.0
    ... Audit your website security with Acunetix Web Vulnerability Scanner ... Web applications are ... against web application attacks since they are launched on port 80 - ... more likely to have undiscovered vulnerabilities. ...
    (comp.software.shareware.announce)