Difference between web.config and app.config?
Answers were Sorted based on User's Feedback
Answer / k kranti kumar
web.config file is for asp.net web applications
app.config file is for .net windows applications
Is This Answer Correct ? | 44 Yes | 7 No |
Answer / pravinkumar
app.config file is for .net windows applications
web.config file is for asp.net web applications
Is This Answer Correct ? | 18 Yes | 7 No |
Answer / reva ram sahu
web.config is used with web applications. web.config will by
default have several configurations required for the web
application. You can have a web.config for each folder under
your web application.
app.config is used for windows applications. When you build
the application in vs.net, it will be automatically renamed
to <appname>.exe.config and this file has to be delivered
along with your application.
You can use the same method to call the appsettings values
from both config files :
System.Configuration.COnfigurationSettings.AppSettings["Key"]
Is This Answer Correct ? | 6 Yes | 2 No |
What is a response cookie?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
Explain the server control events of asp.net ?
What is the difference between a.Equals(b) and a == b?
Various types of Page Load functions
Which protocol is used to call web service?
Below is a code extract from an ASP.Net application. The code basically reads data from the “name” field in the “members” table and prints them onto the webpage. Using the assumptions provided, fill in the 4 blanks below so that the code will run correctly. ‘Assumptions: ‘conn_str is a variable that holds the connection string to the database ‘Objects dbcomm and dbread are already declared earlier dbcomm = New OleDbCommand("SELECT name FROM members", conn_str) dbread = dbcomm._______________ _____________________ response.write(_______________) _____________________ dbread.Close()
What are the different Key TreeView Properties in Asp.net 2.0?
What is the difference between GridView and Repeater controls in ASP.NET?
what is the assembly?
What is the difference between “Web.config” and “Machine.Config”?
what is use to destroy an object? illustrate.