C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Read Connection From Web.Config


Posted Date: 19 Sep 2006      Total Responses: 3

Posted By: vivek b. soni       Member Level: Bronze     Points: 2


Hi

How do I Read Connection in cs.file?
If i have mention my connection details in Web.Config File...?
Can anybody post code for it....




Responses

Author: Gaurav Sharma     19 Sep 2006Member Level: DiamondRating:     Points: 2

ConfigurationManager.AppSettings["sqlConnectionString"]

THANKS


Author: Hiren Patel    19 Sep 2006Member Level: GoldRating:     Points: 2

strConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;

[\code]


Author: Mohan Kumar    19 Sep 2006Member Level: DiamondRating:     Points: 2
hi,

use this code.

object ss = ConfigurationSettings.AppSettings("here key value");
OleDbConnection con = new OleDbConnection(ss);

-Mohan kumar



Post Reply
You must Sign In to post a response.
Next : Site for asp.net
Previous : regarding timer control
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference calls

Contact Us    Privacy Policy    Terms Of Use