ASP.Net Programming Interview Questions and Answers

ASP.Net Questions and Answers:

1 :: What event handlers can I include in Global.asax?

Application_Start,Application_End, Application_AcquireRequestState, Application_AuthenticateRequest, Application_AuthorizeRequest, Application_BeginRequest, Application_Disposed, Application_EndRequest, Application_Error, Application_PostRequestHandlerExecute, Application_PreRequestHandlerExecute,
Application_PreSendRequestContent, Application_PreSendRequestHeaders, Application_ReleaseRequestState, Application_ResolveRequestCache, Application_UpdateRequestCache, Session_Start,Session_End
You can optionally include "On" in any of method names. For example, you can name a BeginRequest event handler.Application_BeginRequest or Application_OnBeginRequest.You can also include event handlers in Global.asax for events fired by custom HTTP modules.Note that not all of the event handlers make sense for Web Services (they're designed for ASP.NET applications in general, whereas .NET XML Web Services are specialized instances of an ASP.NET app). For example, the Application_AuthenticateRequest and Application_AuthorizeRequest events are designed to be used with ASP.NET Forms authentication.
4.8/5 Rating (4 votes)
Is This Answer Correct?    16 Yes 4 No
Place Your Answer

2 :: Which template must you provide, in order to display data in a Repeater control?

ItemTemplate
5/5 Rating (3 votes)
Is This Answer Correct?    23 Yes 0 No
Place Your Answer

3 :: How can you provide an alternating color scheme in a Repeater control?

AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other row (alternating items) in the Repeater control. You can specify a different appearance for the AlternatingItemTemplate element by setting its style properties.
3/5 Rating (2 votes)
Is This Answer Correct?    11 Yes 2 No
Place Your Answer

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

In earlier versions of IIS, if we wanted to send a user to a new Web page, the only option we had was Response.Redirect. While this method does accomplish our goal, it has several important drawbacks. The biggest problem is that this method causes each page to be treated as a separate transaction. Besides making it difficult to maintain your transactional integrity, Response.Redirect introduces some additional headaches. First, it prevents good encapsulation of code. Second, you lose access to all of the properties in the Request object. Sure, there are workarounds, but they're difficult. Finally, Response.Redirect necessitates a round trip to the client, which, on high-volume sites, causes scalability problems.
As you might suspect, Server.Transfer fixes all of these problems. It does this by performing the transfer on the server without requiring a roundtrip to the client.
4.8/5 Rating (4 votes)
Is This Answer Correct?    9 Yes 1 No
Place Your Answer

5 :: What are ASP.NET Web Forms? How is this technology different than what is available though ASP?

Web Forms are the heart and soul of ASP.NET. Web Forms are the User Interface (UI) elements that give your Web applications their look and feel. Web Forms are similar to Windows Forms in that they provide properties, methods, and events for the controls that are placed onto them. However, these UI elements render themselves in the appropriate markup language required by the request, e.g. HTML. If you use Microsoft Visual Studio .NET, you will also get the familiar drag-and-drop interface used to create your UI for your Web application.
5/5 Rating (1 vote)
Is This Answer Correct?    7 Yes 2 No
Place Your Answer

Rate This Category:
3.3/5 Rating (3 votes)
Place Your Question



Top: ASP.Net Programming Interview Questions and Answers
ASP.Net Programming Interview Questions and Answers

Top Frequently Asked ASP.Net Question
Frequently Asked ASP.Net Job Interview Question


Top Frequently opened Microsoft .Net Technologies Job Interview categories
Most popular Microsoft .Net Technologies Job Interview categories

Comments About ASP.Net Programming Interview Questions and Answers

Share your valuable opinions, ideas and suggestions about ASP.Net Programming Interview Questions and Answers
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 23rd of May 2012

    Webmaster Said

    Tell us what you feel about ASP.Net Programming Interview Questions and Answers
    All comments will be published after review. No login or registration is required to post a comment on ASP.Net Programming Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding ASP.Net Programming Interview Questions and Answers
    Thank you.

  2. Gracyn (1 Comment) 26th of January 2012

    Gracyn Said

    This could not possibly have been more helupfl!

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: ASP.Net Programming Interview Questions and Answers
Comments on ASP.Net Programming Interview Questions and Answers

 
Top of Link batk to ASP.Net Programming Interview Questions and Answers
Link batk to ASP.Net Programming Interview Questions and Answers