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

What are the Difference between asp.net and asp ?

1225


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

1098


Explain how is a property designated as read-only?

1042


Is asp.net still used?

1067


What are different methods of session maintenance in asp.net?

1118


What is the behavior of a Web browser when it receives an invalid element?

1147


What are the advantages of asp.net mvc framework? : asp.net mvc

1068


Describe SOA and the tenets of it?

1090


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

1713


Disable browser cache for entire ASP.NET website?

1262


What are server-side comments in ASP.NET?

989


What is web router?

981


Web API uses which library for JSON serialization?

1138


What is the caspol.exe tool used for?

1059


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

970