where should write the connection string Show that it will
apply whole pages in the website
Answers were Sorted based on User's Feedback
Answer / krushitha
you need to write the connection string in web.config.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
Answer / krushitha
It is a central repository from where you can retrieve it
and use it in all the pages. For example if you store the
connection string in a central place like a web.config file
you can retrieve those connection strings from the
web.config file and use it
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / navin.cp
You can also pass a connection string in web.config file as:-
<appSettings>
<add key="ConStrName" value="your_ConStrValue"/>
</appSettings>
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / payal
Config file we can write that is web.config and
machine.config
Is This Answer Correct ? | 1 Yes | 1 No |
Define dll hell?
Is a dll file an executable?
What is the difference between exe and dll?
Difference between .NET and previous version?
What are the new navigation controls in asp.net 2.0?
What does a switch do?
How do you remove duplicates without using remove duplicate stage?
What's the difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript ?
How many web.config files in each solution
what is Theme in Asp.net 2.0
What is mta?
What is difference between Lambda Expression and LINQ in ASP.NET?