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 |
Is any files are generated,when we are adding the web reference to the web service?
explain what does .edmx file contains?
What is routeconfig.cs in mvc 4?
creating crystal reports in asp.net & vb.net
Is http stateful or stateless?
How do you handle variable number of segments in a route definition?
What is the difference between the value-type variables and reference-type variables in terms of garbage collection ?
reading doc file in textbox using .net2005 with c#
Where does web.config info stored? Will this be stored in the registry ?
1 Answers Accenture, BirlaSoft,
Name a few different return types of a controller action method?
I want to fetch data from datareader. i have three tables in datareader. i want to bind my two table with datagrid, then i want to fetch a value from my third table. do u have any idea pls help me. we use dr.nextresult() for multiple tables.
Can we look at the IL for an assembly?