Difference between <connectionstring> and <appsettings>

Answers were Sorted based on User's Feedback



Difference between <connectionstring> and <appsettings>..

Answer / bharathi

u can declare ur database connection in connection string
and u can declare all ur application settings in appsettings
like ur service url etc

Is This Answer Correct ?    17 Yes 8 No

Difference between <connectionstring> and <appsettings>..

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

Difference between <connectionstring> and <appsettings>..

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

Difference between <connectionstring> and <appsettings>..

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

Post New Answer

More Dot Net Framework Interview Questions

what is difference b/w .net 1.1 and .net 2.0. I need Answer in c# , asp.net and ado.net Level.Like c#1.1 and c#.1.1 , ado.net1.1 and ado.net2.0 and asp.net1.1 and asp.net2.0

4 Answers  


Can you handle all button click events at once in a form? Give coding.

1 Answers   Kanbay,


unit test done by tetser on development team?

3 Answers   Crea,


Where are the routing rules defined in an asp.net mvc application?

1 Answers  


What are the different authentication modes in the .NET environment?

2 Answers  


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

1 Answers  


Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?

1 Answers  


What is disconnected scenario? : Entity framework

1 Answers  


What is routeconfig.cs in mvc 4?

1 Answers  


Give an example for authorization filters in an asp.net mvc application?

1 Answers  


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

1 Answers  


I'm anfinal yr. engg. student with knowledge of .net. I want to refurnish my knowledge for interview purpose. Which institute is good....I am confused among Peers, Naresh it, Deccansoft...Plz help me to select the right institute.....

9 Answers  


Categories