Hai friend i have read your mesage,
to use connectionstring in web.config..
<configuration>
<connectionStrings>
<add connectionString="Server=server name;Database=databasename;uid=user id;pwd=password;" name="ConStr"/>
</connectionStrings>
</configuration>
To call the connection string to our page
SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ConStr"].ToString());
I think it may useful to you..
If still you have doubt reply me.
sprakashcs
Member
256 Points
63 Posts
Re: question regarding proper setup pf the web.config file
Apr 18, 2008 05:13 AM|LINK
Hai friend i have read your mesage,
to use connectionstring in web.config..
<configuration>
<connectionStrings>
<add connectionString="Server=server name;Database=databasename;uid=user id;pwd=password;" name="ConStr"/>
</connectionStrings>
</configuration>
To call the connection string to our page
SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ConStr"].ToString());
I think it may useful to you..
If still you have doubt reply me.
visit this link for further clarification
http://foraspdotnetdevelopers.blogspot.com/