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 |
Explain the concept of View Model in MVC?
What are the session variables?
What is the Difference between Web.config and global.asax? Can we write connection String code in global.asax?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
What is difference between cache and session?
How to convert any string to view state format in asp.net? §ÇÛ짬ªª³ö»Ç¾ö»ÂÇ¿¾»¼»¾ö¼ÉÇöÇÏǼ»Ãö®±ª§°ö«³ -- i want convert this string to view state.
How can we inherit a static member?
Why does a user need nothing more than a Web browser to view ASP.NET pages?
Explain the difference between value type and reference type?
What language is asp.net written in?
If(dropdownlist1.selectedIndexChanged==true) { //code } else { //code } I am getting error in If condition, so can u pls give me a solution.
Can we have 2 web config files?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)