ASP.NET INTERVIEW QUESTION & ANSWERS
36. |
What is a template in the context of ASP.NET controls? |
|
A template is a set of HTML or ASP.NET code displayed in a list or grid format by
the Repeater, DataGrid, or DataList control.
|
37. |
How do you create a permanent cookie? |
|
Setting the Expires property to MinValue means that the Cookie never expires.
|
38. |
What is the difference between a Web Service and a Web server? |
|
A Web Service uses custom code to provide functions to client programs located somewhere on the Internet. A Web server listens for Internet requests, such as HTTP or SOAP requests, and responds with files. Most Web Services use a Web server to "feed" them with requests from clients and to "push" data back to client programs.
|
39. |
How to Manage State in ASP.Net? |
|
There are several ways to manage a state.
- ViewState
- QueryString
- Cookies
- Session
- Application
|
40. |
What is the difference between "Web.config" and "Machine.config"? |
|
- "Web.config" files apply settings to each web application.
- While "Machine.config" file apply settings to all ASP.NET applications.
|