ASP.NET interview questions

  1. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe
    in the page loading process
    . inetinfo.exe is theMicrosoft IIS server running,
    handling ASP.NET requests among other things.When an ASP.NET request is received
    (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes
    care of it by passing the request tothe actual worker process aspnet_wp.exe.
  2. What’s the difference between Response.Write() andResponse.Output.Write()?
    The latter one allows you to write formattedoutput.
  3. What methods are fired during the page load? Init() - when the pageis
    instantiated, Load() - when the page is loaded into server memory,PreRender()
    - the brief moment before the page is displayed to the user asHTML, Unload()
    - when page finishes loading.
  4. Where does the Web page belong in the .NET Framework class hierarchy?System.Web.UI.Page
  5. Where do you store the information about the user’s locale? System.Web.UI.Page.Culture
  6. What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?
    CodeBehind is relevant to Visual Studio.NET only.
  7. What’s a bubbled event? When you have a complex control, likeDataGrid,
    writing an event processing routine for each object (cell, button,row, etc.)
    is quite tedious. The controls can bubble up their eventhandlers, allowing
    the main DataGrid event handler to take care of itsconstituents.
  8. Suppose you want a certain ASP.NET function executed on MouseOver overa
    certain button. Where do you add an event handler?
    It’s the Attributesproperty,
    the Add function inside that property. So


    A simple”Javascript:ClientCode();” in the button control of the .aspx
    page will attach the handler (javascript function)to the onmouseover event.

  9. What data type does the RangeValidator control support? Integer,String
    and Date.
  10. Where would you use an iHTTPModule, and what are the limitations of any
    approach you might take in implementing one?
    One of ASP.NET’s most useful
    features is the extensibility
    of the HTTP pipeline
    , the path that data takes between client and server.
    You can use them to extend your ASP.NET applications by adding pre- and post-processing
    to each HTTP request coming into your application. For example, if you wanted
    custom authentication facilities for your application, the best technique
    would be to intercept the request when it comes in and process the request
    in a custom HTTP module.
  11. Explain what a diffgram is, and a good use for one? A DiffGram is
    an XML format that is used to identify current and original versions of data
    elements. The DataSet uses the DiffGram format to load and persist its contents,
    and to serialize its contents for transport across a network connection. When
    a DataSet is written as a DiffGram, it populates the DiffGram with all the
    necessary information to accurately recreate the contents, though not the
    schema, of the DataSet, including column values from both the Original and
    Current row versions, row error information, and row order.
This entry was posted in .NET. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

8 Comments on ASP.NET interview questions

  1. Andrew O
    Posted 2/15/2004 at 1:35 pm | Permalink

    Very Helpful, thank you Admin.

  2. Andrew O
    Posted 2/15/2004 at 1:55 pm | Permalink

    Concerning number 8, I don’t think there is a need to use the attributeproperty. A simple”Javascript:ClientCode();” in the button control of the .aspx page will attach the handler (javascript function)to the onmouseover event.

  3. Andrew O
    Posted 2/15/2004 at 1:57 pm | Permalink

    asp:button somebuttonsomefunction();

    Admin how do I include code, the tag code is not working!

  4. Andrew O
    Posted 2/17/2004 at 6:44 am | Permalink

    Per question 8 again:

    I was wrong about the onmouseover attribute in ASP controls because my suggestion only works on asp pages not aspx pages(ASP.NET).

    First of all, ASP controls are serverside controls which means they run on the server. They will be located in the code-behind file and a simple btnName.attribute.add(”onmouseover”,”somejavafunction”); will include the onmouseover event and its handler function.

    Sorry for any mixup!

  5. Igor V.
    Posted 3/16/2004 at 11:55 pm | Permalink

    #9 is not really correct. MSDN says that RangeValidator can be used for the following data types:
    String A string data type.
    Integer A 32-bit signed integer data type.
    Double A double-precision floating point number data type.
    Date A date data type.
    Currency A decimal data type that can contain currency symbols.

  6. Anura
    Posted 3/23/2004 at 2:23 am | Permalink

    From where i can get some sample questions on SAP

  7. selvaganesh
    Posted 4/22/2004 at 12:10 am | Permalink

    how we can select top 10 records from the table using sql query And
    also how we can use beans in jsp?

  8. Mohan.S
    Posted 3/28/2005 at 3:44 pm | Permalink

    The above 11 questions helped me a lot in interviewing my students.

Post a Comment

Your email is never published nor shared. Required fields are marked *