Skip to main content

Top 100 Dot Net Interview Questions - Part 8

71. What type of code, client-side or server-side, is found in a code-behind file of a Web page?

A code-behind file contains the server-side code, which means that the code contained in a code-behind file is executed at the server.

72. To which class a Web form belongs to in the .NET Framework class hierarchy?

A Web form belongs to the System.Web.UI.Page class.

73. What does the "EnableViewState" property do? Why do we want it On or Off?

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.

74. Which event determines that all the controls are completely loaded into memory?

The Page_Load event determines that all the controls on the page are fully loaded. You can also access the controls in the Page_Init event; however, the ViewState property does not load completely during this event.

75. What is the function of the CustomValidator control?

It provides the customize validation code to perform both client-side and server-side validation.

76. What is Role-based security?

In the Role-based security, you can assign a role to every user and grant the privilege according to that role. A role is a group of principal that restricts a user's privileges. Therefore, all the organization and applications use role-based security model to determine whether a user has enough privileges to perform a requested task.

77. Which data type does the RangeValidator control support?

The data types supported by the RangeValidator control are Integer, Double, String, Currency, and Date.

78. What are the HTML server controls in ASP.NET?

HTML server controls are similar to the standard HTML elements, which are normally used in HTML pages. They expose properties and events that can be used programmatically. To make these controls programmatically accessible, you need to specify that the HTML controls act as a server control by adding the runat="server"attribute.

79. Why a SiteMapPath control is referred to as breadcrumb or eyebrow navigation control?

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.

80. Where is the ViewState information stored?

The ViewState information is stored in the HTML hidden fields.

Comments

Popular posts from this blog

Top 100 Dot Net Interview Questions - Part 1

1. What is ASP? Active Server Pages (ASP), also known as Classic ASP, is a Microsoft's server-side technology, which helps in creating dynamic and user-friendly Web pages. It uses different scripting languages to create dynamic Web pages, which can be run on any type of browser. The Web pages are built by using either VBScript or JavaScript and these Web pages have access to the same services as Windows application, including ADO (ActiveX Data Objects) for database access, SMTP (Simple Mail Transfer Protocol) for e-mail, and the entire COM (Component Object Model) structure used in the Windows environment. ASP is implemented through a dynamic-link library (asp.dll) that is called by the IIS server when a Web page is requested from the server. 2. What is ASP.NET? ASP.NET is a specification developed by Micro...

Samsung Galaxy S4 is likely to have an eye scrolling feature

Though there is no official word from Samsung on the features and specifications of the upcoming Galaxy S IV smartphone, the rumour mill has started churning out rumours concerning the same. According to a new report from  The New York Times , Samsung Galaxy S IV is likely to have an eye scrolling feature, thereby enabling users to scroll through webpages without even touching the screen of the phone. "The phone will track a user's eyes to determine where to scroll, said a Samsung employee who spoke on condition of anonymity because he was not authorized to speak to the news media. For example, when users read articles and their eyes reach the bottom of the page, the software will automatically scroll down to reveal the next paragraphs of text," said the report. Samsung Galaxy S IV is likely to have an eye scrolling feature, thereby enabling users to scroll through webpages without even touching the screen of the phone. However, it is still not know th...