where should write the connection string Show that it will
apply whole pages in the website

Answer Posted / lakshmi

connection string saved in the web.config file:

<connectionstrings>
<add name="Appconnectionstring1"
connectionstring="server=localhost;User Id=sa;Password=
password;Database=Northwind; persist security info ="True"
providerName="system.data.sqlclient"/>
</connectionstrings>

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define web.config in .net?

731


how to include timer or counting time to display next page in asp.net

1704


When cookie will expire?

684


Can master pages be nested?

594


What is cached data phone?

613






What are the disadvantages of asp.net?

679


What is the difference between asp.net and mvc?

671


Can I combine classic asp and asp.net pages?

609


In which situation can you not use a viewstate?

606


Write some code using interfaces, virtual methods, and an abstract class`

1684


What is the difference between login controls and forms authentication?

628


How does viewstate work?

668


When you use Ajax controls in the ASP.NET application?

667


What are validator? Name the validation controls in asp.net?

594


How ASP.NET page works?

756