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.

CustomValidator<br />

Used to define UserDefined validation.<br />

ValidationSummary<br />

Displays summary of all current validation errors.<br />

Note:- It's rare that some one will ask step by step all the validation controls.Rather they<br />

will ask for what type of validation which validator will be used.Example in one of the<br />

interviews i was asked how do you display summary of all errors in the validation<br />

control...So there goes the last one Validation summary.<br />

(B) Can you explain what is “AutoPostBack” feature in<br />

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

If we want the control to automatically postback in case of any event , we will need to<br />

check this attribute as true.Example on a ComboBox change we need to send the event<br />

immediately to the server side then set the “AutoPostBack” attribute to true.<br />

(B) How can you enable automatic paging in DataGrid ?<br />

Following are the points to be done in order to enable paging in Datagrid :-<br />

√<br />

√<br />

Set the “AllowPaging” to true.<br />

In PageIndexChanged event set the current pageindex clicked.<br />

Note:- The answers are very short , if you have implemented practically its just a<br />

revision.If you are fresher just make sample code using Datagrid and try to implement this<br />

functionality.<br />

(B) What’s the use of “GLOBAL.ASAX” file ?<br />

It allows to execute ASP.<strong>NET</strong> application level events and set application-level variables.<br />

(B) What’s the difference between “Web.config” and<br />

“Machine.Config” ?<br />

123

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

Saved successfully!

Ooh no, something went wrong!