Asp.Net Interview Questions and Answers for Experienced - 1

Question: 1

What are ASHX files?

ASHX files contain HTTP handlers-software modules that handle raw HTTP requests received by ASP.NET.

Question: 2

Can an ASPX file contain more than one form marked runat= “server”?

No.

Question: 3

Describe the difference between inline and code behind?

Inline code written alongside the html in a page. Code –behind is code written in a separate file and referenced by the .aspx page.

Question: 4

Explain how the server control validation controls work?

ASP.NET provides a set of Web server controls called validation controls that provide sophisticated validation on both the client side and the server side depending on the validation settings and the browser’s capabilities.   

ASP.NET ensures that validations are performed on the server side even if they were already performed on the client side. This ensures that validations are not bypassed if a malicious user circumvents client-side validation. If the client-side validation fails, the server-side validation is never performed.

Some validator controls are

Requiredfieldvalidator,

RangeValidator,

CompareValidator,

RegularExpressionValidator,

CustomValidator,

ValidationSummary.

You may want to mention about Page. Validate () Method and Page. IsValid Property. 

Question: 5

Which two properties are on every validation control?

Control to Validate and Error Message properties.

Related Questions