Skip to main content

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 Microsoft to create dynamic Web applications, Web sites, and Web services. It is a part of .NET Framework. You can create ASP.NET applications in most of the .NET compatible languages, such as Visual Basic, C#, and J#. The ASP.NET compiles the Web pages and provides much better performance than scripting languages, such as VBScript. The Web Forms support to create powerful forms-based Web pages. You can use ASP.NET Web server controls to create interactive Web applications. With the help of Web server controls, you can easily create a Web application.

3. What is the basic difference between ASP and ASP.NET?

The basic difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses .NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).

4. In which event are the controls fully loaded?

Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is not fully loaded during this event

5. How can we identify that the Page is Post Back?

Page object has an "IsPostBack" property, which can be checked to know that is the page posted back.

6. What is the lifespan for items stored in ViewState?

The items stored in ViewState live until the lifetime of the current page expires including the postbacks to the same page.

7. How information about the user's locale can be accessed?

The information regarding a user's locale can be accessed by using the System.Web.UI.Page.Cultureproperty.

8. What is the difference between SQL notification and SQL invalidation?

The SQL cache notification generates notifications when the data of a database changes, on which your cache item depends. The SQL cache invalidation makes a cached item invalid when the data stored in a SQL server database changes.

9. Which is the parent class of the Web server control?

The System.Web.Ul.Control class is the parent class for all Web server controls.

10. Can you set which type of comparison you want to perform by the CompareValidator control?

Yes, by setting the Operator property of the CompareValidator control.

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 ...