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


Please Help Members By Posting Answers For Below Questions

What are the main advantages of using asp.net?

558


What is difference between abstract class and an interface?

507


What is difference between asp state management and asp.net state management?

577


What are the different types of sessions in asp.net?

494


How can you debug your.net application?

558






How to you can limit Access to Web API to Specific HTTP Verb?

670


How can we update records in gridview?Is there any appropriate code for it?

1608


What are tuples?

543


Can we have a web application running without web.config file?

526


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

537


State differences between MVC and WebAPI

611


What is a postback ispostback and autopostback in asp net?

481


How should I destroy my objects in asp.net?

603


Explain the difference between dataset and datareader.

535


Define secured sockets layer.

537