April 30, 2013

ASP.NET Interview Questions and Answers

What does the "EnableViewState" property do? Why do we want it On or Off?
Ans- The EnableViewState property enables the ViewState property on the page. It is set to On to allow the page to save the users input between postback requests of a Web page; that is, between the Request and corresponding Response objects. When this property is set to Off, the page does not store the users input during postback.


What is the function of the CustomValidator
control?
Ans- It provides the customize validation code to perform both client-side and server-side validation.


Which data type does the RangeValidator control support?
Ans- The data types supported by the RangeValidator control are Integer, Double, String, Currency, and Date.


Why a SiteMapPath control is referred to as breadcrumb or eyebrow navigation control?
Ans- The SiteMapPath control displays a hierarchical path to the root Web page of the Web site. Therefore, it is known as the breadcrumb or eyebrow navigation control.


Which namespaces are necessary to create a localized application?
Ans- The System.Globalization and System.Resources namespaces are essential to develop a localized application.


What is the difference between HTML and Web server controls?
Ans- HTML controls are client-side controls; therefore, all the validations for HTML controls are performed at the client side. On the other hand, Web server controls are server-side controls; therefore, all the validations for Web server controls are performed at the server side.


What is the difference between absolute expiration and sliding-time expiration?
Ans- The absolute expiration expires a cached item after the provided expiration time. The sliding time does not expire the cached items because it increments the specified time.

0 comments:

Post a Comment

  • Blogger news

    This Blog Contains All Topics Related To Internet, Website Help, Interview Questions, News, Results From Various Resources, Visit Daily For More Interesting And Famous Topics.
  • Random Post

  • About

    We Provide All Information Which you Needed. We Maintain This Blog Very Carefully, If You Find Any Mistake or Any Suggestions Then Please Let Us Know, You Can Contact Us By Comments, On FB Page Or On Google+ Page. ~ Thank You