.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!




Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.


Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/PracticesIISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

ASP.Net Interview Questions and Answers

What's a bubbled event?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: ASP.Net     Points: 40

When you have a complex control, like DataGrid, 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 its constituents.

When during the page processing cycle is ViewState available?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: ASP.Net     Points: 40

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

What methods are fired during the page load?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: ASP.Net     Points: 40

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.

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

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: ASP.Net     Points: 40

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

Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: ASP.Net     Points: 40

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.

How do you implement ViewState for a control?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: ASP.Net     Points: 40

In ASP.NET 4, Web server controls include a ViewStateMode property that lets you disable view state by default and then enable it only for the controls that require it in the page.
The ViewStateMode property takes an enumeration that has three values: Enabled, Disabled, and Inherit. Enabled enables view state for that control and for any child controls that are set to Inherit or that have nothing set. Disabled disables view state, and Inherit specifies that the control uses the ViewStateMode setting from the parent control.
<asp:PlaceHolder ID="PlaceHolder1" runat="server" ViewStateMode="Disabled">
Disabled: <asp:Label ID="label1" runat="server" Text="[DeclaredValue]" /><br />
<asp:PlaceHolder ID="PlaceHolder2" runat="server" ViewStateMode="Enabled">
Enabled: <asp:Label ID="label2" runat="server" Text="[DeclaredValue]" />
</asp:PlaceHolder>
</asp:PlaceHolder>

What is permanent redirecting and how do you implement it?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: ASP.Net     Points: 40

ASP.Net 4.0 introduced a new URL redirection method RedirectPermanent() which avoids round trips.
You can implement this as shown below:
RedirectPermanent("/newpath/newpage.aspx");

How is Caching extended in asp.Net 4.0?

Author: Subhransu Sekhar Jena          Posted Date: October 30, 2014    Category: ASP.Net     Points: 40

OutPut Cache in earlier versions of ASP.Net has a limitation - generated content always has to be stored in memory, and on servers that are experiencing heavy traffic, the memory consumed by output caching can compete with memory demands from other portions of a Web application.

ASP.NET 4 adds an extensibility point to output caching that enables you to configure one or more custom output-cache providers. Output-cache providers can use any storage mechanism to persist HTML content. This makes it possible to create custom output-cache providers for diverse persistence mechanisms, which can include local or remote disks, cloud storage, and distributed cache engines.

What is the difference between width="100" and width="100%" in HTML?

Author: Subhransu Sekhar Jena          Posted Date: September 29, 2014    Category: ASP.Net     Points: 40

"100"takes only 100px where as "100%" takes available space.

How to find number of items in the current session collection in ASP.NET

Author: abhays          Posted Date: September 26, 2014    Category: ASP.Net     Points: 40

System.Web.SessionState.HttpSessionState member Count which returns the number of items in the current session collection
« Previous12345678910….5758Next »



Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend