Skip to main content

ASP.NET Latest Question and answer

  1. What's the difference between Response.Write() andResponse.Output.Write()?

    Response.Output.Write() allows you to write formatted output.

  2. What methods are fired during the page load?

    Init() - when the page is instantiated
    Load() - when the page is loaded into server memory
    PreRender() - the brief moment before the page is displayed to the user as HTML
    Unload() - when page finishes loading.

  3. When during the page processing cycle is ViewState available?

    After the Init() and before the Page_Load(), or OnLoad() for a control.

  4. What namespace 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?

    CodeBehind is relevant to Visual Studio.NET only.

  6. What's the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?

    CodeBehind is relevant to Visual Studio.NET only.

  7. What is the Global.asax used for?

    The Global.asax (including the Global.asax.cs file) is used to implement application and session level events.

  8. What are the Application_Start and Session_Start subroutines used for?

    This is where you can set the specific variables for the Application and Session objects.

  9. Whats an assembly?

    Assemblies are the building blocks of the .NET framework;

  10. Whats MSIL, and why should my developers need an appreciation of it if at all?

    MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL. MSIL also allows the .NET Framework to JIT compile the assembly on the installed computer.

  11. Which method do you invoke on the DataAdapter control to load your generated dataset with data?

    The Fill() method.

  12. Can you edit data in the Repeater control?

    No, it just reads the information from its data source.

  13. Which template must you provide, in order to display data in a Repeater control?

    ItemTemplate.

  14. Name two properties common in every validation control?

    ControlToValidate property and Text property.

  15. What base class do all Web Forms inherit from?

    The Page class.

  16. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

    Server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client's browser. This provides a faster response with a little less overhead on the server. Server.Transfer does not update the clients url history list or current url. Response.Redirect is used to redirect the user's browser to another page or site. This performas a trip back to the client where the client's browser is redirected to the new page. The user's browser history list is updated to reflect the new address

  17. What is ViewState?

    ViewState allows the state of objects (serializable) to be stored in a hidden field on the page. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. ViewState is used the retain the state of server-side objects between postabacks.

  18. What is the lifespan for items stored in ViewState?

    Item stored in ViewState exist for the life of the current page. This includes postbacks (to the same page).

  19. What does the "EnableViewState" property do? Why would I want it on or off?

    It allows the page to save the users input on a form across postbacks. It saves the server-side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser. When the page is posted back to the server the server control is recreated with the state stored in viewstate.

  20. What are the different types of Session state management options available with ASP.NET?

    ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. This requires the a "sticky-server" (or no load-balancing) so that the user is always reconnected to the same web server. Out-of-Process Session state management stores data in an external data source. The external data source may be either a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable.

 

Comments

Popular posts from this blog

Top Open Source Web-Based Project Management Software

This is an user contributed article. Project management software is not just for managing software based project. It can be used for variety of other tasks too. The web-based software must provide tools for planning, organizing and managing resources to achieve project goals and objectives. A web-based project management software can be accessed through an intranet or WAN / LAN using a web browser. You don't have to install any other software on the system. The software can be easy of use with access control features (multi-user). I use project management software for all of our projects (for e.g. building a new cluster farm) for issue / bug-tracking, calender, gantt charts, email notification and much more. Obviously I'm not the only user, the following open source software is used by some of the biggest research organizations and companies world wild. For example, NASA's Jet Propulsion Laboratory uses track software or open source project such as lighttpd / phpbb use re

My organization went through the approval process of supporting the .NET Framework 2.0 in production. Do we need to go through the same process all...

My organization went through the approval process of supporting the .NET Framework 2.0 in production. Do we need to go through the same process all over again for the .NET Framework 3.0? Do I need to do any application compatibility testing for my .NET Framework 2.0 applications? Because the .NET Framework 3.0 only adds new components to the .NET Framework 2.0 without changing any of the components released in the .NET Framework 2.0, the applications you've built on the .NET Framework 2.0 will not be affected. You don’t need to do any additional testing for your .NET Framework 2.0 applications when you install the .NET Framework 3.0.

Google products for your Nokia phone

Stay connected with Gmail, Search, Maps and other Google products. Check products are available for your Nokia phone Featured Free Products Search - Find the information you need quickly and easily Maps - Locate nearby businesses and get driving directions Gmail - Stay connected with Gmail on the go YouTube - Watch videos from anywhere Sync - Synchronize your contacts with Google