Download
100% FREE
Office Document APIs for .NET
Online: 1674
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
Windows Forms
>
Loading ...
how to define connection string in app config file for access databse
Posted by
Shanky11
under
Windows Forms
on 11/19/2013 |
Points: 10
| Views : 1173 | Status :
[Member]
| Replies : 1
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
i have created a application in that i want to add app config file
and define a connection in app config file
C:\Users\Developer01\Desktop\18-11-2013 old\Measurement\bin\Debug\Calliberation.bdb
how can i open this file to get data ???????????
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
vishalneeraj-24503
on: 11/19/2013
[Member]
[MVP]
Platinum
|
Points: 25
0
Hi,
You can set your connection string in app.config file in appSettings section
<appSettings>
<add key="name_of_your_connection_string_name" value="your_conection_string_parameters"/>
</appSettings>
alternatively you can also write your connection string in Setting file:-
right-click on your project -> add -> new item -> select Settings file ->
then in the setting file add N
Name = "your connection string name"
Type = string
Scope = "Application"
Value = "your_conection_string_parameters" like data source = ""
hope this helps you.
Shanky11
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to handle 302 status (Moved temporalily)
(1)
Failed to find a valid digest in the 'integrity' attribute
(1)
Angular Template parse error occured while rendering 3rd party website in ASP.NET
(0)
How to display 2 tables in a single line in 2 div tag
(1)
I Want to Do a multiple selector on ASPnet MVC
(0)
Get all materials of parent and its children in an array except for few
(0)
Container in Media Query
(0)
How to send keys to specified app with title?
(1)
More ...