Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Connection String
 

Connection String

I'm coming from ASP.NET and I haven't done much of anything with Windows Forms.  I'm just wondering how the data layer is handled, more specifically something like the connection string.

For instance, in ASP.NET I would store the connection string in the web.config.  In each of my methods in my datalayer I would access that connection string through ConfigurationSettings.AppSettings.  What is the equivalent in Windows Forms?  Do you store the connection string in a config file, or do you make a constant at the class level?  I would just like to know the best practice.

Thanks.
MigrationUser 1  Saturday, April 02, 2005 1:59 PM
its just like your web.config but its called app.config and you have to add it manually, it is at the bottom of the add new item window.
MigrationUser 1  Saturday, April 02, 2005 3:46 PM

You can use google to search for other answers

Custom Search

More Threads

• Data Grid view Combo Collection filling
• Filtering a DataGrid by a Date Range
• Dynamic columns binding to DataGridView - all rows show the same data
• wierd 'insert into' behavior
• DataGridView Parent->Child while Filtering
• Datagridview Columns Order
• Permanent scroll bars in datagrid
• Saving data in a datagridview...specific question...
• DataGrid currency formatting
• How to select multiple rows in datagridview by using datagridviewCheckBox?