difference between <connectionstring> <Appsetting>
Answer Posted / prabhat saxena(manu)
there are three way to stablished the connection in
web.config file
1- <appsetting>
code.....
</appsetting>
2-
<ConnectionString>
......code
...
</ConnectionString>
3-
you can create own type of tag and register this tag with
machine.comfig files,
there is no more difference to stablish the connection with
any tag,
mostly developer prefer <AppSettion> beause it provieds
some extra properties,but no diff. of the performance,
u can use anyone,
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
What’s the catch?
How does asp net store session ids by default?
What is application in asp net?
What are the main differences between asp and asp.net?
What is enableviewstatemac in asp net?
Write a code for sending an email from asp.net application.
Where sessions are stored in asp.net?
I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?
If you are using components in your application, how can you handle exceptions raised in a component?
What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC
What is view state management in asp net?
How to handle errors in Web API?
Do you know using sql cache invalidation?
Explain the difference between dataset and datareader.
What are the features of asp net?