Life cycle of an ASP .NET page.

Stage Events/Method Page Initialization Page_Init View State Loading LoadViewState Postback data processin LoadPostData Page Loading Page_Load PostBack Change Notification RaisePostDataChangedEvent PostBack Event Handling RaisePostBackEvent Page Pre Rendering Phase Page_PreRender View State Saving SaveViewState Page Rendering Page_Render Page Unloading Page_UnLoad 1) Explain the .NET architecture. a) All .Net supported Languages b) Common Language specification c) Windows forms / web pages d) ADO.Net / web services e) Base class library f) Common language runtime g) Operating system. 2) How does u create multiple inheritances in c# and .net? Multiple inheritances are created by using interfaces. 3) When web.config is called ? Web.config is an xml configuration file.this never gets called directly unless we need to retrieve the configuration setting. 4) How many weg.configs a application can have one. 5) How does u set language in weg.config a) set the ‘defaultlanguage’ attribute. 6) What does connection string consists of a) connection string consist of : server name, userid , password , database name. 7) Where do u store connection string a) connection string can stored in web.config file under configuration / connection string tab. 8) What is abstract class? Abstract class is a class which cannot be instantiated but inherited by derived classes. This class contains abstract as well as non-abstract methods and members. 9) What is diff b/w interface inheritance and class inheritance A class can have multiple interface inheritance, but only one. In interface inheritance : Inherited class must implement all the methods define in that interface. Class inheritance : inherited class may or may not implement all methods of that base class. 10) What are the collection classes? 1) Array list

By encapsulation. 4) Use stored procedures.2) Hash table 3) stack 4) Dictionary 5) Queue 12) What inheritance support vb.inherits the same methods and properties. Inheritance: A class that derives from another class . This is possible with overriding and overloading. (Overriding and hiding methods) 15) optimization technique description 1) Avoid unnecessary use of view state which lowers the performance. Whilst an object may have 100s of properties normally only those properties of importance to the situation are described. 14) OOPS CONCEPTS 1) Encapsulation : Hiding internal implementation of the objects and provide global interface access to object. 13) What is runtime host? a) Runtime host is local environment where CLR is running. users of an object only need to adhere to these interfaces. 2) Avoid the round trips to server. 4) Abstraction : Describing an object with its unique and relevant characteristics according to specific need. Abstraction: the describing of objects by defining their unique and relevant characteristics (properties). Object: An object is an instance of a class. The class defines the properties of the object and the methods used to control the object’s behaviour. 2) Inheritance : The ability of a class to reuse the members and member functions of its base class. The class acts as the template from which an instance of an object is created at run time. Encapsulation: hides detailed internal specification of an object.known as the base class . the internal data and methods of an object can be changed without changing the way of how to use the object. This promotes reuse and maintainability. whereas the time of day a policy was purchased is not usually of value). Object-Oriented concepts? Class: The formal definition of an a) Single class inheritance and multiple interface inheritance. and publishes only its external interfaces. each derived class will have its own behavior. 3) Polymorphism : The ability of the objects to be represented in multiple forms. Polymorphism: Allows objects to be represented in multiple forms. 16) Diff b/w application and session a) Application object maintains state on application basis whereas session object maintain the state of the client visited to the application. . Thus. 3) Use connection pooling. (eg life policies premiums are normally important. Even though classes are derived or inherited from the same parent class.

net? In c# : we use : . Overloading : Derived classes may have different method signature with different parameters. 40) About a class access specifiers and method access specifiers 1) Public : available throughout application. 39) What serialization? Serialization is a process of conversion an objects into stream of bytes so that they can transfer through the channels. 41) What diff b/w overloading and overriding? How can this be . 2) Private : available for class and its inherited class. How do u implement inheritance in .exe and Dll 1) Exe has an entry Polymorphism supports to objects to be represent in different forms. Identities of client gets destroy. Write (“value of i=”+i) . 30) What r the 2 types of polymorphism support in . 20) If cookies are disabled in client browser will session work a) Overriding : derived classes follow the same base class method signatures. 4) Internal : available throughout that assembly. 42) About virtual function and then use Virtual function is that which is get override by the derived class to implement polymorphism. Server. Response. 2) Session : state used to maintain user state in application. a) Yes. exe also destroyed. 3) Protected : restricted to that class only.NET OBJECTS? Request. 25) What are a Process. 2) If Dll is getting Overriding and overloading 35) ASP. 38) What is side by side execution Asynchronous execution in which application keeps on running instead of waiting for the result of previous stage execution. Session. 18) Diff b/w Active. application. Session and Cookie? 1) Process : Is a running thread of application. 29) How is Polymorphism supports in .17) What is web application virtual directory? a) Virtual directory is a physical location where actually application folder is situated.. 23) The following code executes successfully response. 3) cookie : used to store user identification data on client machine.

) is quite tedious. When during the page processing cycle is ViewState available? After the Init() and before the Page_Load().NET only.when the page is loaded into server memory PreRender() . Means a class can be inherited by more than one interface OR inherited by one class and more than one interfaces.cs" andSrc="MyCode.. Iemployee.aspx. handling ASP.Page 6. 45) About friend and protected friend Friend / internal : provides access throughout that particular assembly.44)if I want to override a method 1 of class A and this class B then how do u declared answer : public virtual void method1(){ } .Write() allows you to write formatted output.aspx.UI. The controls can bubble up their eventhandlers. What namespace does the Web page belong in the .NET requests among other things.Web.When an Multiple Inheritance: ex.NET request is received (usually a file with . 3.. writing an event processing routine for each object (cell. row.cs"? CodeBehind is relevant to Visual Studio. 5.UI. inetinfo.In class A.dll andaspnet_wp.exe. What’s a bubbled event? When you have a complex control. or OnLoad() for a control.NET Framework class hierarchy? System.Write()? Response.Page. public override void method1(){}…………. 50) What is isPostback property? Is postback is a property of page to check weather the page is loaded first time or in response to the client callback.Write() andResponse.when the page is instantiated Load() . Describe the role of inetinfo.dll takes care of it by passing the request tothe actual worker process aspnet_wp. 2. Public void Person () {}. Multi level inheritance: ex.Culture 7. 46) About multiple and multilevel Inheritance how to a chive in .In class B. 4. What’s the difference between Codebehind="MyCode. What methods are fired during the page load? Init() .aspx extension). Protected friend : provides access for that particular class and to its child classes.exe is theMicrosoft IIS server running. the ISAPI filter aspnet_isapi. etc. allowing the main DataGrid event handler to take care of its constituents. What’s the difference between Response. Public void employee : customer{}.exe in the page loading process. . aspnet_isapi. like DataGrid. 1. Where do you store the information about the user’s locale? System.Output. 8. Public void Customer : person {} . Public void Employee : Persons.when page finishes loading.the brief moment before the page is displayed to the user as HTML Unload() . button.Web.Output.exe.

Explain the differences between Server-side and Client-side code? Server-side code executes on the server. rather than being loaded on demand.Attributes. 14. The user's browser history list is updated to reflect the new address. 16. String. Server.cs file) is used to implement application and session level events. Can you explain what inheritance is and an example of when you might use it? When you want to inherit (use the functionality of) another class. · You can store many edits in a DataSet. code-behind executes on the server.NET come in different versions for different data sources. · A DataSet is designed to work without any continuing connection to the original data source. Example: btnSubmit. 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. 18. Client-side code executes in the client's browser. client-side validation can be performed where deemed appropriate and feasable to provide a richer. Where do you add an event handler? Add an OnMouseOver attribute to the button. other objects in ADO. However. more responsive experience for the user. · Data in a DataSet is bulk-loaded.Transfer does not update the clients url history list or current url. · There's no concept of cursor types in a DataSet. and Date.asax used for? The Global. complete with tables. · DataSets have no current record pointer You can use For Each loops to move through the data. Additionally. What is the Global.9. Can you explain the difference between an ADO.NET function executed on MouseOver for a certain button.").Transfer and Response. But just to be clear. This provides a faster response with a little less overhead on the server.Add("onmouseover". Response.asax (including the Global. Example: With a base class . 10. · Though the DataSet is universal. and views. Should user input data validation occur server-side or client-side? Why? All user input data validation should occur on the server at a minimum. What data types do the RangeValidator control support? Integer. and write them to the original data source in a single operation. Suppose you want a certain ASP. 15. This performas a trip back to the client where the client's browser is redirected to the new page. What type of code (server or client) is found in a Code-Behind class? The answer is server-side code since code-behind is executed on the server. it can render client-side code such as JavaScript to be processed in the clients browser."someClientCodeHere(). during the code-behind's execution on the server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client's browser. What is the difference between Server. 11.Redirect? Why would I choose one over the other? Server.Redirect is used to redirect the user's browser to another page or site. 12.asax.NET Dataset and an ADO Recordset? Valid answers are: · A DataSet can represent an entire relational database in memory. 13. 17. relations. thus making it server-side code.

31. it just reads the information from its data source. Whats MSIL. Which property on a Combo Box do you set with a column name. Code-behind is code written in a separate file and referenced by the . 21. Describe the difference between inline and code behind. Inline code written along side the html in a page. 32. 25. 30. 23.NET DLL contain? It can contain many classes. How can you provide an alternating color scheme in a Repeater control? Use the AlternatingItemTemplate. 29. 27. What base class do all Web Forms inherit from? The Page class. prior to setting the DataSource.named Employee. MSIL also allows the . and what method must you call in your code. 26. 28. Name two properties common in every validation control? ControlToValidate property and Text property. . in order to display data in a Repeater control? ItemTemplate. and why should my developers need an appreciation of it if at all? MSIL is the Microsoft Intermediate Language. All . 22. A good use is reading database data to an XML file to be sent to a Web Service. to display data in the combo box? DataTextField property. a Manager class could be derived from the Employee base class.aspx page.NET framework.NET compatible languages will get converted to MSIL. Whats an assembly? Assemblies are the building blocks of the . in order to bind the data from a data source to the Repeater control? You must set the DataSource property and call the DataBind method. Explain what a diffgram is. How many classes can a single . Which method do you invoke on the DataAdapter control to load your generated dataset with data? The Fill() method. Which control would you use if you needed to make sure the values in two different controls matched? CompareValidator control. and a good use for one? The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. Overview of assemblies from MSDN 20. Which template must you provide. 24. What property must you set. 19. Can you edit data in the Repeater control? No.NET Framework to JIT compile the assembly on the installed computer.

Out-of-Process Session state management stores data in an external data source. Where on the Internet would you look for Web services? http://www. ViewState is transported to the client and back to the server. 2. 4. What are the different types of Session state management options available with ASP. What is ViewState? ViewState allows the state of objects (serializable) to be stored in a hidden field on the page. and is not stored on the server or any other external source. This requires the a "sticky-server" (or no load-balancing) so that the user is always reconnected to the same web server.NET? ASP. When the page is posted back to the server the server control is recreated with the state stored in viewstate.Web Service Questions 1. 3. which is stored as a hidden value on the page before sending the page to the clients browser. What is the transport protocol you use to call a Web service? SOAP (Simple Object Access Protocol) is the preferred protocol. The external data source may be either a SQL Server or a State Server service. What is the lifespan for items stored in ViewState? Item stored in ViewState exist for the life of the current page. ViewState is used the retain the state of server-side objects between postabacks.NET provides In-Process and Out-of-Process state management.uddi. In-Process stores the session in memory on the web server. What does WSDL stand for? Web Services Description 5. State Management Questions 1. 2. . Out-of-Process state management requires that all objects stored in session are serializable. 4. It saves the server-side values for a given control into ViewState. 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. the web service comes with a test page and it provides HTTP-GET method to test. True or False: A Web service can only be written in . This includes postbacks (to the same page). True or False: To test a Web service you must create a Windows application or Web application to consume this service? False.NET? False 3.

Sign up to vote on this title
UsefulNot useful