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
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
What is x xss protection?
How can we apply themes to an asp.net application?
Explain code snippet to register exception filters from controller?
How would you get asp.net running in apache web servers?
What are uri parameters?
Is asp.net is a programming language?
What is break mode?
What is the purpose of using MVC programming pattern in ASP.NET?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
What is the difference between Session and response.Redirect?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
Is data edited in the Repeater control?
Where is the view state data stored in asp net?
Explain the difference between the web config and machine config.