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 difference between executenonquery () and executescalar ()?

881


Which is faster entity framework or ado.net?

875


What is data control techniques?

892


describe the dataset object in ado.net.

901


what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?

940


Which object of ado contains datarow datacolumn collection?

891


What is ado.net explain with diagram?

916


Explain the basic use of "dataview" and explain its methods.

938


How do you find the count of records in a dataset?

907


Which is better entity framework or ado.net?

968


How would you connect to database using .NET?

978


What are the main differences between classic ado and ado.net?

965


What is ado and dao?

897


What is the difference between connected and disconnected environment?

1006


What is connected architecture in ado.net?

972