You must Sign In to post a response.

connection string in wpf

I am new to wpf,please explain how to make connection string in app.xaml file.


Comments

Author: Aravind PK23 Aug 2008 Member Level: Gold   Points : 4

Use app.config to create connection string as how you may use in web.config file for connection settings in web based apps.

it can be like,


Author: ParasGautam25 Aug 2008 Member Level: Bronze   Points : 6

Hey Thanks for replying,but I tried the solution you gave,I put tag in app.xaml file like

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Window1.xaml">






But it gives the following error:-

Error1: The tag 'appsetting' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentat

Error2:The type 'appsetting' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

plese help



Sign In to post your comments