Microsoft ASP.NET interview questions

These questions are asked by Microsoft at one of their international locations.

  1. What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.
  2. What is serialization, how it works in .NET?
  3. What should one do to make class serializable?
  4. What exactly is being serialized when you perform serialization?
  5. Tell me about 6h4 methods you have used to perform serialization.
  6. Did you work with XML and XSL Transformations?
  7. What methods and what for did you use to work with XML?
  8. What is the purpose of reserved word “using” in C#?
  9. How does output caching work in ASP.NET?
  10. What is connection pooling and how do you make your application use it?
  11. What are different methods of session maintenance in ASP.NET?
  12. What is Viewstate?
  13. Can any object be stored in a Viewstate?
  14. What should you do to store an object in a Viewstate?
  15. Explain how Viewstate is being formed and how it’s stored on client.
  16. Explain control life cycle, mind event order.
  17. What do you know about ADO.NET’s objects and methods?
  18. Explain DataSet.AcceptChanges and DataAdapter.Update methods.
  19. Assume you want to update a record in the database using ADO.NET. What necessary steps you should perform to accomplish this?
  20. How to retreive the value of last identity has been updated in a database (SQL Server)?

Interviewing at Microsoft? - Read employment practices and questions asked.

This entry was posted in .NET, Web dev. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

68 Comments on Microsoft ASP.NET interview questions

  1. madhulipa
    Posted 2/9/2006 at 11:00 pm | Permalink

    Answer to the question : What is Smart Navigation ?

    Ans : Is the attribute of the page tag which allows the browser to sections of the form that have changed. The advantage of Smart Navigation is that the screen does not flash as it updated, instead, the scroll postion is maintained and the “last page” in the history is maintained. It is only availabe to the users with Microsoft Internet Explorer 5 or later.

  2. Priyadarshan
    Posted 4/23/2006 at 9:13 pm | Permalink

    Q: when we go for html server controls and when we go for web server controls?
    A: Server controls are a part of When a server control is used there will be an extra overhead on the server to create the control at runtime and accordingly set the values. HTML controls are static controls and are easy to use. They are supported is
    As a rule, if there is a correspoding HTML control available instead of the server control, you should always go for the HTML control as it enhances the server performance and ensures faster response.
    Server controls should be used when it is found that the available HTML controls are not sufficient to achieve the task.

  3. Suhas
    Posted 6/12/2006 at 5:04 am | Permalink

    Answer for question .
    4 Q. What is the SQL statement to return all the employees and the name
    of their manager given you have one tables (employees) with the
    following fields: EmployeeID (int), Employee Name (varchar-50), ManagerID
    (int), salary?

    select a.EmployeeID,a.Employee_Name,b.employee_name maneger from employee a
    left outer join employee b
    on a.ManagerID=b.EmployeeID

  4. sujaykumar.ravipati
    Posted 7/7/2006 at 4:35 am | Permalink

    what is the major difference in with asp?

  5. gyandeosingh
    Posted 7/29/2006 at 12:39 am | Permalink

    What is major difference between Asp.Net Server Control and HTML Server Control?
    What is in web.config file>

  6. gargi
    Posted 8/22/2006 at 4:37 am | Permalink

    Satellite assembly is shared assembly.

  7. Posted 9/16/2006 at 1:15 am | Permalink

    hi Will anybody tell me that how i can bind database in datagrid through wizard in with disconnected Architecture in

    with thanks

  8. venkateswari
    Posted 10/18/2006 at 5:24 am | Permalink

    1. what is smart navigation?
    The cursor position is maintainedwhen the page gets refereshed due to the server side validation and page gets refereshed

  9. sumanth
    Posted 1/19/2007 at 6:58 am | Permalink

    objects of are
    1.request 2.responce 3.server 4.session 5.application
    and two more 6)trace 7) user

  10. Ganesh
    Posted 2/13/2007 at 6:23 am | Permalink

    what is satellite assemply?

  11. Pavan Raj T.S
    Posted 3/7/2007 at 9:32 am | Permalink

    Although ASP.NET appears to be similar to ASP from the developer’s point of view, it’s actually quite different. ASP.NET is entirely object-based; every object can have its own properties, methods, and events. This structure provides an object-oriented approach to developing Web applications. ASP.NET was developed to make Web application development simpler, richer, and more available to all developers. Some of the major differences between ASP and ASP.NET are as follows:

    Strong-typed languages

    ADO vs. ADO.NET

    Server controls

    XML and SOAP support

  12. Nitin
    Posted 3/9/2007 at 5:38 am | Permalink

    i have two question

    1. Where do the dateset object is sotred after loading data from the data base?

    2.What is the state of variable after boxing? and where do the variable stores?

  13. Suman
    Posted 3/14/2007 at 2:29 pm | Permalink

    [What is a Delegate, UDDI and how does it helps in Give some examples for both the questions. Thank u in advance.]

  14. Divya Balan
    Posted 4/11/2007 at 4:16 am | Permalink

    Expalin the methods for uploading a project in ASP.Net over internet?How can we transfer files ?how can the task be accomplished in our system?What are the minmum requirements for the same to perform it at our house?How can we do the registration in the server?Which DNS we must use?How to look the availability of names we wish to gave to our sites ?Which sites are best known for it?Pls do help me

  15. Divya Balan
    Posted 4/11/2007 at 4:40 am | Permalink

    Hi sujay kumar,
    Here is ur answer for
    What are the differences btn ASP and Asp.Net?
    We can make comparisons based on
    1)Fundamental Changes
    2)Programmatic Enhancements
    3)Programmatic Methodologies

    1)Fundamental Changes
    *Classic ASP was built on top of OS and IIS,It was always a seperate entity,and therefore its functionality was limited.
    *Asp.NET is an integral part of O>S under the .NET FrameWork
    * 6 inherent objects are used in ASP
    * ASP.NET has plethora of useful components it can build from
    *Asp treat client and Server as seperate entities
    *ASP.NET ties together them thru clever use of SErver Side and Clent side code
    *ASP uses interpreted scripting languages
    ASP.NET uses compiled codes

    2)Programmatic Enhancements
    *ASP.Net provides code compilation,graeter security
    & Simplicity,ease of deployment
    *With Asp we have to register WEb Applns or COM objects
    * ASP.NET we have to copy only DLL Files
    *In ASP ,Sessions not transferrable across Servers
    *ASP.NET overcome this issue by providing built in Sessions support that scalable across WEb farms,and even survive crashes.

    3)Programmatic Methodologies

    * ASP,Completely object oriented
    *Asp.Ner completely object Oriented

  16. luthersingh, chennai
    Posted 6/16/2007 at 8:06 am | Permalink

    difference between asp and

    1. ASP is mostly written using VB Script and HTML intermixed. Presentation and business logic is intermixed while ASP.NET can be writen in several .NET compliant languages like C#, VB.NET and business logic can be clearly separated from Presentation logic.
    2. ASP had maximum of 4 built in classes like Request, Response, Session and Application whereas ASP.NET using .NET framework classes which has more than 2000 in built classes.
    3. ASP does not have any server based components whereas ASP.NET offers several server based components like Button, TextBox etc and event driven processing can be done at server.
    4. ASP did not support Page level transactions whereas ASP.NET supports Page level transactions.
    5. ASP.NET offers web development for mobile devices which alters the content type (wml or chtml etc) based on the device.
    6. ASP.NET uses languages which are fully object oriented languages like c# and also supports cross language support.
    7. ASP.NET offers support for Web Services and rich data structures like DataSet which allows disconnected data processing.

  17. Pavithra
    Posted 7/31/2007 at 2:16 am | Permalink

    1) I have connectionstring in web config file. I want to place database connection coding in App_Code folder and i want to call the connection coding to create connection in my cs files
    2) Can a web form can be connected to windows form and can have backend database in Unix?
    3) In which situation we can use collection classes
    4) What is the purpose of Generic and when to use it
    5) While using web services, i want my development team to point some url and when giving it
    to testing, i want testing team to use different url? so, how this can be done?
    6)How to use java webservice in

  18. aisha
    Posted 12/13/2007 at 1:47 am | Permalink

    Serialization is the act of saving an object to a storage medium or transforming the object so that it may be sent across a network. Serialization is an important aspect of the .NET Framework for developers to understand.

Post a Comment

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