Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you retrieve information from web.config ?

Answer Posted / ansu_kumar

generaly we store our connection string in web.config file
under tag
<appsetting>
<add key=connection_string
value="data source=......"/>
</appsetting>
and
for accessing the value
in aspx page we writes
string const=
configurationsetting.appsetting.connection_string

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would ASP and ASP.NET applications run at the same time on the same server?

2485


What are the components of ado.net?

944


Explain Authentication mechanism in dotnet

1019


What is bound controls

1039


Is asp.net and .net are same or different?

971


Which asp.net objects encapsulate the state of the client and the browser?

1069


What are the advantages of using Master Pages?

1013


Where the cookie value is stored?

924


How many web config files can be created for an application?

841


How can we create custom controls in asp net?

1002


What are the namespace classes used in asp.net mvc? : asp.net mvc

1021


What are the difference between overriding and overloading?

1059


Can we handle the error and redirect to some pages using web.config?

1607


Can you explain architecture of your project ?

1106


Which data type does the rangevalidator control support?

926