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 the use of sqldatareader class?

946


How we can provide data to ado.net?

988


What is the difference between data grid and data repeater?

1014


What does adodb stand for?

983


What is the difference between linq and ado.net?

954


What is dbcontext and dbset in entity framework?

882


What is an orm, and why would you use one instead of plain old ado.net?

1005


How to pass multiple tables in datasets simultaneously?

1017


What DataReader class do in ADO.NET ?

1041


What are all the different methods under sqlcommand?

937


What is aggregate root?

1014


What are the types of databinding?

940


What is the difference between executequery and executenonquery?

875


Explain sqlconnection object?

946


Explain advantages of ado.net?

1005