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 to you declare connection strings and how to you make
use of web.config ?

Answer Posted / ansu kumar

in
web.config file
<appsetting>
<add key="constr" value="data source=database name;
database=database name"/>
</appsetting>

and
in .aspx file
string str=configurationsetting.appsetting.constr;

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ambient transaction?

949


What is namespace in ado.net?

1022


Explain which name space is used to get assembly details?

970


Explain sqlconnection object?

1008


What are the benefits of ADO.NET?

1121


Which is faster datareader or dataadapter?

994


Does sqlclient and oledb class share the same functionality?

940


What is the role of data provider in ado.net?

1002


What is ado.net in mvc?

928


If a table contains 20000 records. In a page at each time 100 records to be displayed.

893


Describe the command object and its method.

1005


Define Execute Reader?

1071


How to connect and retrieve data from database using dataset

1056


differences between ADO and ADO.NET

1080


What is maximum pool size in ado.net connection string?

976