Sunday, May 25, 2014

Basic Interview Questions on ASP.Net(13)

Basic Interview Questions on ASP.Net(13)





1.Define ASP?
A.Acronym for ASP is Activex Server Page.It is also known as classic ASP,is a Microsoft’s server-side technology which helps to create a web based applications before ASP.Net Microsoft introduced ASP for building a webbased applications.By using this technology we can develop dynamic websites with the any of the scripting languages i.e VBScript Or JavaScript. ASP is implemented through a dynamic-link library (asp.dll) that is called by the IIS server when a Web page is requested from the server.

2.Define ASP.Net?
A.Acronym for ASP.Net is Activex Server Pages for Net.ASP.Net is a specification developed by Microsoft to create dynamic web applications,websites,and web services.It is a part of .NET Framework.By using ASP.Net we can develop web based applications with the help of any .Net compatiable programming languages such as VB.Net,C#.Net,J#.Net,F#.Net,Jscript.Net,Iron Phython,WindowsPowerShell etc.ASP.Net is a Technology rather than Programming Language.ASP.Net compiles the webpages and provides much better performance than scripting languages such as VB Script.

3.Can you explain the difference between ASP and ASP.Net?
A.


4.Define Application Server?
A.An application Server is a software engine that delivers applications to client computers or devices.The application server runs your server code.Some well known application servers are IIS(Microsoft),WebLogic Server(BEA),JBoss(Red Hat),WebSphere(IBM).

5.What is type of  Asp.Net programming model?
A.Asp.Net programming model belongs to Event Driven means everything should be done with events only.

6.Define Event Bubling?
A.The ASP.NET page framework provides a technique called event bubbling that allows a child control to propagate events up its containment hierarchy. Event bubbling enables events to be raised from a more convenient location in the controls hierarchy and allows event handlers to be attached to the original control as well as to the control that exposes the bubbled event.
                                                Or
Invoking a child level events with the help of parent hierarchy level category of events mostly we can observe this context with any of the databound controls like GridView or Datalist etc there we can place button or linkbutton parent is Databound control in this context and child is button associated event.

6.How many number of events involved in ASP.Net Page processing?
A.12

7.List the some of built in objects in Asp.Net?
A.Some of the built in objects in ASP.Net arelisted below.They are:
1.Application
2.Request
3.Response
4.Server
5.Session
6.Context
7.Trace

8. Which Asp.net objects encapsulate the state of the client and the browser?
A.The Session object encapsulates the state of the client and browser.

9. What is Response object? How is it related to ASP’s Response object?
A. Response object allows the server to communicate with the client (browser). It is useful for displaying information to the user (or) redirecting the client.
            E.G:Response.Write(“Hello World”);

10.What's the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?
A.CodeBehind is relevant to Visual Studio.NET only.

11. What's a bubbled event?
A.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 its constituents.
Suppose you want a certain ASP.NET function executed on MouseOver over a certain button.

12.Where do you add an event handler?
A.It's the Attributesproperty, the Add function inside that property.
e.g. btnSubmit.Attributes.Add("onMouseOver","someClientCode();")

13. What is IIS? Have you used it?
A.IIS - Internet Information Server
IIS is used to access the ASP.Net web applications

0 comments:

Post a Comment