Skip to main content

Top 100 Dot Net Interview Questions - Part 2

11. What is the behavior of a Web browser when it receives an invalid element?

The behavior of a Web browser when it receives an invalid element depends on the browser that you use to browse your application. Most of the browsers ignore the invalid element; whereas, some of them display the invalid elements on the page.

12. What are the advantages of the code-behind feature?

The code-behind feature of ASP.NET offers a number of advantages:

  • Makes code easy to understand and debug by separating application logic from HTML tags
  • Provides the isolation of effort between graphic designers and software engineers
  • Removes the problems of browser incompatibility by providing code files to exist on the Web server and supporting Web pages to be compiled on demand.

13. How do you sign out from forms authentication?

The FormsAuthentication.Signout() method is used to sign out from the forms authentication.

14. What is AutoPostBack?

If you want a control to postback automatically when an event is raised, you need to set the AutoPostBackproperty of the control to True.

15. What is the function of the ViewState property?

The ASP.NET 4.0 introduced a new property called ViewStateMode for the Control class. Now you can enable the view state to an individual control even if the view state for an ASP.NET page is disabled.

16. Why do you use the App_Code folder in ASP.NET?

The App_Code folder is automatically present in the project. It stores the files, such as classes, typed data set, text files, and reports. If this folder is not available in the application, you can add this folder. One of the important features of the App_Code folder is that only one dll is created for the complete folder, irrespective of how many files it contains.

17. Define a multilingual Web site.?

A multilingual Web site serves content in a number of languages. It contains multiple copies for its content and other resources, such as date and time, in different languages.

18. What is an ASP.NET Web Form?

ASP.NET Web forms are designed to use controls and features that are almost as powerful as the ones used with Windows forms, and so they are called as Web forms. The Web form uses a server-side object model that allows you to create functional controls, which are executed on the server and are rendered as HTML on the client. The attribute, runat="server", associated with a server control indicates that the Web form must be processed on the server.

19. What is the difference between a default skin and a named skin?

The default skin is applied to all the Web server controls in a Web form, which are of similar type, and it does not provide a Skin ID attribute. The named skin provides a Skin ID attribute and users have to set the Skin ID property to apply it.

20. What is IIS? Why is it used?

Internet Information Services (IIS) is created by Microsoft to provide Internet-based services to ASP.NET Web applications. It makes your computer to work as a Web server and provides the functionality to develop and deploy Web applications on the server. IIS handles the request and response cycle on the Web server. It also offers the services of SMTP and FrontPage server extensions. The SMTP is used to send emails and use FrontPage server extensions to get the dynamic features of IIS, such as form handler.

Comments

Popular posts from this blog

Introducing Viroprotek

Introducing Viroprotek Advanced Hand Sanitizer & Disinfectant from Asian Paints @ Cheaper Price, contact me at 9884040933

Apple 'iWatch' is Jony Ive's pet project, could release this year

Wearable computing is being seen as one of the next-big-things in the future of technology, whether it's Google's Glass or companies like Samsung and Apple racing to pitch their next smart watch. Independent watch-maker  Pebble  may have taken the lead, but Apple isn't too far behind. A new Bloomberg report  says that Apple's so-called iWatch is expected to release this year. The report mentions that the project is currently being fuelled by the efforts of a 100 engineers being led by Apple design chief Jony Ive himself. While the bit about 100 engineers seems excessive for a company that is known for small teams that work on the secret projects, the report does mention that Ive, who has a fetish for high-end watches, went so far as to order "boxes" of Nike sports watches for his team to study a few years ago. The business portal points out that the iWatch may end up being more profitable than Apple's other rumoured new television business. Even though ...