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

Describe the command object and its method.

1004


What is ado.net in mvc?

928


What is oledb driver?

936


How can we check that some changes have been made to dataset since it was loaded?

970


Define connection string?

1066


Which parameter of ConnectionString is used to specify the name of the database?

1059


What is the use of SqlCommand object?

1228


What is difference between ado and other data object?

913


What are the pre-requisites for connection pooling?

1005


What is shadow copy?

985


can we create synonymn in ms access,sql server,my sql if so explain me with example

2087


Which property is used to check whether a DataReader is closed or opened?

1047


What is the meaning of executenonquery?

1066


Which is the best method to get two values from the database?

967


What are the different methods by which we can populate a dataset?

1233