Thursday, July 17, 2014

Daily Interview Question #14 : What is Cross-Page Posting?

Cross page posting is used to submit a page (page1.aspx) to another page (page2.aspx). However, the user can still able to access the first page’s (page1.aspx) controls, properties etc in the second page (page2.aspx). In order to access the first page’s control, we have to use “Previouspage” property.

Sunday, July 13, 2014

Daily Interview Question #13 : What is “Postback”?

                     In ASP.Net postback means, page posted back itself to the server(IIS) whenever an event triggered. That is, page is submitted to the same url. The event may be a button click or dropdown list changed etc. Postback can be identified by IsPostBack() property, to detect the page object is created due to postback.

Tuesday, July 8, 2014

Daily Interview Question #12 : What is the purpose of “sealed” keyword in C#?.

Sealed
1. When you want to prevent an class from being inherited by another class, you should use “sealed” keyword in front of the class.