26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7. ASP.<strong>NET</strong><br />

(B) What’s the sequence in which ASP.<strong>NET</strong> events are<br />

processed ?<br />

Following is the sequence in which the events occur :-<br />

√<br />

√<br />

√<br />

√<br />

Page_Init.<br />

Page_Load.<br />

Control events<br />

Page_Unload event.<br />

Page_init event only occurs when first time the page is started , but Page_Load occurs in<br />

subsequent request of the page.<br />

(B) In which event are the controls fully loaded ?<br />

Page_load event guarantees that all controls are fully loaded.Controls are also accessed in<br />

Page_Init events but you will see that viewstate is not fully loaded during this event.<br />

(B) How can we identify that the Page is PostBack ?<br />

Page object has a “IsPostBack” property which can be checked to know that is the page<br />

posted back.<br />

(B) How does ASP.<strong>NET</strong> maintain state in between<br />

subsequent request ?<br />

Refer caching chapter.<br />

(A) What is event bubbling ?<br />

Server controls like Datagrid , DataList , Repeater can have other child controls inside<br />

them.Example DataGrid can have combo box inside datagrid.These child control do not<br />

raise there events by themselves , rather they pass the event to the container parent<br />

(which can be a datagrid , datalist , repeater) , which passed to the page as “ItemCommand”<br />

event.As the child control send there events to parent this is termed as event bubbling.<br />

120

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!