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 different types of validation controls provided in ASP.NET?

1158


What is a user session?

890


What is server transfer?

896


How will you load dynamic assembly?

997


What is the used of "ispostback" property?

1118


Explain about consistent programming model in the .NET framework?

1097


What is a query string in a url?

991


What are asp.net web forms?

1015


What is the purpose of asp.net?

1000


What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

1041


What is the significance of finalize method in .net?

1046


What is state management technique?

1028


How can I open ashx file in mobile?

1159


What are demand-paging and pre-paging?

995


What is page fragment caching?

959