Pages

Wednesday, March 18, 2009

How To Get Applocation setting Varible

Web.Config

"< appSettings >
< add key = SqlServerConnectionString" value="Server=.\sqlexpress;UID=test;PWD=test;Database=test " />
< / appSettings >"


Use Configuration


return ConfigurationSettings.AppSettings["SqlServerConnectionString"]

No comments:

ShareThis

Welcome

Welcome to Rajesh Prajapati, asp.net blog.
Here you can find some useful code and information about asp.net., c#, VB.net, SQL Server, Web Service, Web Designing etc