You are on page 1of 5

(B) What' is the sequence in which ASP.NET events are processed?

Following is the sequence in which the events occur:. Page_Init. . Page Load. . Control events . Page- Unload event. Page_init event only occurs when first time the page is started, but Page Load occurs in subsequent request of the page.

(B) In which event are the controls fully loaded?
Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is not fully loaded during this event.5 (B) How can we identify that the Page is Post Back? Page object has an "IsPostBack" property, which can be checked to know that is the page posted back.

(B) How does ASP.NET maintain state in between subsequent request?
Refer Caching chapter, For Caching Part 1 and For Part 2 .

(A) What is event bubbling?
Server controls like Data grid, Data List, and Repeater can have other child controls inside them. Example Data Grid can have combo box inside data grid. These child control do not raise there events by themselves, rather they pass the event to the container parent (which can be a data grid, data list, repeater), which passed to the page as "ItemCommand" event. As the child control send events to parent it is termed as event bubbling.

(B) How do we assign page specific attributes?
Page attributes are specified using the @Page directive.

database=testing" /> </appSettings> (B) Where is View State information stored? In HTML Hidden Fields. (B) What is the use of Smart Navigation property? It's a feature provided by ASP.pwd=www. . Example below defined is "Connection String" section.(A) How do we ensure view state is not tampered? Using the @Page directive and setting 'EnableViewStateMac' property to True. NET to prevent flickering and redrawing when the page is posted back.This is only supported for IE browser. (B) What is AppSetting Section in "Web. Project is who have browser compatibility as requirements have to think some other ways of avoiding flickering. we can define user-defined values.Config" file? Web. <Configuration> <appSettings> <add key="ConnectionString" value="server=xyz.config file defines configuration for a web project. (B) What is the use of @ Register directives? @Register directive informs the compiler of any custom server control added to the page. Note:. which will be used through out the project for database connection. Using "AppSetting" section.

Example TxtCustomerCode should not be more than eight lengths. RangeValidator It checks if the value in validated control is in that specific range. Now to use the above accounting footer in page you can use the below directive. After .(I) what is the use of @ Output Cache directive in ASP.NET? User controls are created using . Register the ASCX control in page using the <percentage@ Register directive. It is used for caching. (B) How can we create custom controls in ASP.ASCX file is created you need to two things in order that the ASCX can be used in project:.ascx" %> . It is used when you want the control should not be empty.Example <%@ Register tag prefix="Accounting" Tag name="footer" src="Footer.ASCX in ASP.NET. . CompareValidator . See more for Caching chapter.NET? There are six main types of validation controls:RequiredFieldValidator It checks whether the control have any value.NET. <Accounting: footer runat="server" /> (B) How many types of validation controls are provided by ASP.

(B) Can you explain "AutoPostBack"? If we want the control to automatically post back in case of any event. .It is rare that some one will ask step by step all the validation controls. Example on a Combo Box change we need to send the event immediately to the server side then set the "AutoPostBack" attribute to true. Example in one of the interviews i was asked how will you display summary of all errors in the validation control. Rather they will ask for what type of validation which validator will be used.NET page. Validation Summary It displays summary of all current validation errors on an ASP. Note: . we will need to check this attribute as true.14.ASAX" file? It allows to execute ASP. value should match with a specific regular expression. just make sample code using Datagrid and try to implement this functionality.The answers are very short. RegularExpressionValidator When we want the control. (B) What is the use of "GLOBAL. if you have implemented practically its just a revision. If you are fresher. CustomValidator It is used to define User Defined validation. Set the "Allow Paging" to true...It checks that the value in controls should match some specific value. Example Textbox TxtPie should be equal to 3.just uttered one word Validation summary. In PageIndexChanged event set the current page index clicked. (B) How can you enable automatic paging in Data Grid? Following are the points to be done in order to enable paging in Data grid:. Note: . .NET application level events and setting application-level variables.

config" and "Machine. while "Machine. while application object are global across users. . (B) What is a SESSION and APPLICATION object? Session object store information between HTTP requests for a particular user.config" file apply settings to all ASP.(B) What is the difference between "Web.config" files apply settings to each web application.NET applications.Config"? "Web.