ASP.NET INTERVIEW QUESTIONS & ANSWERS
1. |
What is ASP.NET? |
|
Active Server Page
- Active : An ASP page provides dynamic content that's updated every time that is accessed.
- Server : An ASP page contains script code that the Web server executes.
- Page: An ASP page is a Web page that the user navigates to and is displayed in his or her browser.
|
|
Posted by Parth. (Jun 06, 2013) |
|
ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server. |
2. |
What are the types of validation controls in Asp.net? |
|
- Required Field Validator
- Range Validator
- Compare Validator
- Regular Expression Validator
- Custom Validator
- Validation Summary
|
3. |
What are the namespaces that automatically imported into every ASP.NET page? |
|
These are seven namespace automatically imported in ASP.NET are - System
- System.Collections
- System.I0
- System.Web
- System.Web.UI
- System.Web.UI.WebControls
- System.Web.UI.HTMLControls
|
4. |
How can you redirect users to a different page? |
|
Use the Response.Redirect method to direct users to different pages. Remember that you must call this method before any HTML is rendered for a page. |
|
Posted by Brinda. (Dec 22, 2013) |
|
We can use server.transfer also to redirect the page
|
5. |
What is the difference between server-side and client-side caching? |
|
Server-side caching caches output before it's sent to the browser. Subsequent requests to that data will retrieve from the cache. Client-side caching stores data (such as pages accessed over the Internet) on a user's hard drive so that it doesn't need to be downloaded again. |