You
should declare the connection string in Web.config's connectionString node:
<connectionStrings>
<add name="Conn"
connectionString="server=;database=;user id;pwd=;"
providerName="System.Data.SqlClient" />
<add name="Conn"
connectionString="server=;database=;user id;pwd=;"
providerName="System.Data.SqlClient" />
</connectionString>
Then, in your web application, you can access that
connection string from web.config as follows:
System.Configuration.ConfigurationManager.ConnectionStrings["Conn"].ToString()
Thank you,
Ryan Olshan
Website - http://www.StrongTypes.com
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Hansh
Sent: Tuesday, January 10, 2006 6:39 AM
To: [EMAIL PROTECTED]; ASP.NET; [EMAIL PROTECTED]; aspnet2; [EMAIL PROTECTED]; [EMAIL PROTECTED]; dotnet4u; [EMAIL PROTECTED]; [EMAIL PROTECTED]; iranibook; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; pakistanidotnet; [EMAIL PROTECTED]; rameshbook; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [AspNet2] globaly connection string in asp.net & use
Hi,
How to define globaly connection string in asp.net & use this string..
plz help me bcoz i m new for asp.net..
How to define globaly connection string in asp.net & use this string..
plz help me bcoz i m new for asp.net..
Yahoo! Photos – Showcase holiday pictures in hardcover
Photo Books. You design it and we’ll bind it!
YAHOO! GROUPS LINKS
- Visit your group "AspNet2" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

