Difference between <connectionstring> and <appsettings>
Answers were Sorted based on User's Feedback
Answer / rituraj pandey
Application Setting is mostly use when we want to perform
more then one work just like this setting with the reporting
tools , make new connection for the user control etc.
but if we want to make only connection with the database and
we don't any other work so we use the connection string .
appsetting is working with the group type.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sampath
if u do a project in.net you have many webforms.each form
should connect with database.so u have to write
connectionstrings in each form.u can avoid these things.u
can declare connection strings in global wise.then it will
inherit in each form
| Is This Answer Correct ? | 7 Yes | 16 No |
Answer / guest
<appsettings> is used before connection string
we use it to set the applicstion setting so that program
run successfully,but
<connectionstring> is used to make the or establish the
connection.
| Is This Answer Correct ? | 3 Yes | 15 No |
What is mapping in entity framework? : Entity framework
Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?
What's the difference between const and readonly ?
how many ways for pass the parameters in the fuction in c#
how to disable the lazy loading framework?
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?
Can we change web.config settings from iis?
What is controllercontext?
what are generics? Without generics what are the disadvantages in 1.1?
3 Answers HP, iSoft, nTech Solutions,
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
can we call the garbage collector to run explicicitly?
What is the meaning of unobtrusive javascript?