Banner Ad

Thursday, July 17, 2014

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

By Francis   Posted at   1:22 PM   ASP.Net Interview Questions No comments

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”?

By Francis   Posted at   4:42 PM   ASP.Net Interview Questions No comments

                     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#?.

By Francis   Posted at   6:31 PM   C# Interview Questions No comments
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.

Wednesday, June 25, 2014

Daily Interview Question #11 : What are the different Session Modes available in ASP.Net?

By Francis   Posted at   5:07 PM   ASP.Net Interview Questions No comments
                              In ASP.Net, “Session Mode” denotes where the ASP.Net application is going to store the user session information.  This can be specified in the Web.Config file by the “SessionState” config element under the “System.Web” config Element.

Sunday, June 1, 2014

Daily interview Question #10 : what is the purpose of "explicit" implementation of interface?

By Francis   Posted at   7:32 AM   CodeProject No comments

There are 2 purposes of explicit implementation of Interface:
First, it is used to avoid name collision between interface methods. That is if you are going to create a class library, there may be a chance to use the same name in several places. At that time "explicit" implementation comes as a rescue.
Secondly, You cannot access that implemented method through the object of the class directly. Instead you typecast it as Interface reference then you can access it. This is because, the C# complier, unable to determine which one the user want to call.

Connect with Us