Join Class Interview Questions Answers

Here are some common ASP.NET Interview Questions Answers for beginners and professionals, In this post we cover a specific version of, webform interview question, there are many application are built on aspx webform, so when they hire candidate, they often asked question relation to webform, the earlier framework of Interview Questions Answers interview basic questions and answers

You should have some experience about developing web form application using aspx page extension, which will help you to understand these question answers.

  1. What are the different validators in ASP.NET?
    • Required field Validator
    • Range Validator
    • Compare Validator
    • Custom Validator
    • Regular expression Validator
    • Summary Validator
  2. What is cross page post back?
    In cross page post back method the URL remains the same but in cross page posting there is little different there is normal post back is done but in target page we can access values of server control in the source page. This is quite simple we have to only set the PostBackUrl property of Button, LinkButton or imagebutton which specifies the target page. In target page we can access the PreviousPage property.And we have to use the @PreviousPageType directive. We can access control of PreviousPage by using the findcontrol method.When we set the PostBackURL property ASP.NET framework bind the HTML and Javascript function automatically.
  3. How many type of error in .net ?
    1. Configuration Errors
    2. Parser Errors
    3. Compilation Errors
    4. Run-Time Errors
    take a look more about Error handling in
  4. How many type of cookie in
    They are 2 types of cookies.

    1) Session Cookies & 2) Persistence Cookies
    * in-memory cookies (commonly used cookies)

    * persistent cookies (when we select/check "remember password" like those situations these will be used.)

    Read more about Cookies in
  5. What is the difference between Server.Transfer and Response.Redirect?

    This tells the browser that the requested page can be found at a new location. The browser then initiates another request to the new page loading its contents in the browser. This results in two requests by the browser.

    It transfers execution from the first page to the second page on the server. As far as the browser client is concerned, it made one request and the initial page is the one responding with content. The benefit of this approach is one less round trip to the server from the client browser. Also, any posted form variables and query string parameters are available to the second page as well.

  6. Can you explain ASP.NET application and Page life cycle
    Aspx page life cycle is tightly integrated framework with .net assembly and IIS, better you read this post to understand framework.
  7. How can we do Inproc and outProc session management ?
    In-Process stores the session in memory on the web server.

    Out-of-Process Session state management stores data in an external server. The external server may be either a SQL Server or a State Server. All objects stored in session are required to be serializable for Out-of-Process state management.

  8. What is ViewState? How long any object can remain in ViewState ?
    ViewState is used to retain the state of server-side objects between page post backs.
    They exist for the life of the current page. once user leave the page ViewState gets expired.
  9. What is caching? What are the different types of caching?

    Caching is a technique used to increase performance by keeping frequently accessed data or files in memory. The request for a cached file/data will be accessed from cache location instead of actual location of that file.

    There are 3 type of caching in ASP.NET
    • Data Caching.
    • Fragment Caching,
    • Output Caching,
    Read more about Caching in
  10. Tell me all events in page life cycle.
    1. Page_PreInit
    2. Page_Init
    3. Page_InitComplete
    4. Page_PreLoad
    5. Page_Load
    6. Page_LoadComplete
    7. Page_PreRender
    8. Render
  11. What is the difference between web config and machine config?
    Web config file is specific to a web application where as machine config is specific to a machine or server. There can be multiple web config files into an application where as we can have only one machine config file on a server.
  12. What is Cross Page Posting?
    The way we post the data to different pages is called Cross Page posting
  13. what are the templates of the Repeater control?
    • ItemTemplate
    • AlternatingltemTemplate
    • SeparatorTemplate
    • HeaderTemplate
    • FooterTemplate
  14. Which data type does the RangeValidator control support?
    Data types Integer, Double, String, Currency, and Date are supported by the RangeValidator control
ASP.NET Course Online Course Online
Interview Question Answers | Fresher Job Interview Tips