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.

WebUIValidation.js javascript file installed at “aspnet_client” root IIS directory is used<br />

to validate the validation controls at the client side<br />

(B)How to disable client side script in validators?<br />

Set EnableClientScript to false.<br />

(A)I want to show the entire validation error message in a<br />

message box on the client side?<br />

In validation summary set “ShowMessageBox” to true.<br />

(B)You find that one of your validation is very complicated<br />

and does not fit in any of the validators , so what will you do<br />

?<br />

Best is to go for CustomValidators..Below is a sample code for a custom validator which<br />

checks that a textbox should not have zero value<br />

<br />

<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!