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 a data control clerk?

1099


What is ado rdo dao in visual basic?

1207


What are the key features of ado.net?

1274


What are the parameters that control most of connection pooling behaviours?

1119


How to add a check box or a dropdown list to a column in a datagrid?

1018


What is dataset and datatable in ado.net?

1043


Which object needs to be closed?

2309


What is ado full form?

1078


What is the difference between Dataset. clone and Dataset.copy?

1096


What are two important objects of ADO.Net?

1064


What is the difference between data grid and data repeater?

1140


What is the namespaces being used to access oracle database?

1142


Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?

1197


What are the types of databinding?

1033


What are the various methods provided by the DataSet object to generate XML?

1054