•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 397,577 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,389 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1197 | Replies: 1
![]() |
To pull the SQL Connection String from the Web.Config use
In the web.config
In the VB.NET Code
In the web.config
<add name="SQLConnStr" connectionString="Data Source=SQLSERVER;Initial Catalog=DATABASE;uid=USERNAME;pwd=PASSWORD"/>
In the VB.NET Code
System.Configuration.ConfigurationManager.ConnectionStrings("SQLConnStr").ConnectionString![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
.net .net framework 3.0 access adsl adsl1 adsl2 adsl2+ ajax asp cable code combo connection custom data developer development dom download dropdownlist feed internet kb kbps mbit microsoft module msdn net network office per reader reuse second skin software sql testing theme throughput upload vista weather web windows workflow xml xoap 240000
- connection string of SqlConnection (C#)
- Connection String (Visual Basic 4 / 5 / 6)
- Connection String (MS Access and FileMaker Pro)
- connection string (ASP.NET)
- Dynamic Connection String Using ADO (Visual Basic 4 / 5 / 6)
- SQL not a trusted connection?! (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: ControlParameter DropDownList not recognized on a ObjectDataSource
- Next Thread: Comment tag ASP.NET


Linear Mode