.NET Questions

Q:

Define Common Type System

Answer

.Net allows developers to write program logic in at least 25 languages. The classes written in one language can be used by other languages in .Net. This service of .Net is possible through CTS which ensure the rules related to data types that all language must follow. It provides set of types that are used by all .NET languages and ensures .NET language type compatibility.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2448
Q:

What are Windows services?

Answer

Windows services, previously known as NT services, are applications that are installed on the system as system services. In other words, Windows services are applications that run in the background with the Windows operating system. The primary use of Windows services is to reduce the consumption of memory required for performing backend operations. Let's take an example to understand this easily. Suppose you want to perform a variety of functions, such as monitor the performance of your computer or application, check the status of an application, and manage various devices, such as printers.

In such a case, you can use Windows services to reduce memory consumption. In addition, Windows services can run on your system even if you have not logged on to your computer. In addition, these services do not have any user interface.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2439
Q:

Describe the .NET base class library

Answer

.NET’s Base class library exists in order to encapsulate huge number of common functions and makes them easily accessible to the developer. .NET base class library provides the functionality like ADO.NET, XML, Threading, IO, Security, Diagnostics, Resources, Globalization, collections etc. It serves as the main point of interaction between developer and runtime.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2433
Q:

What is Dynamic Language Runtime (DLR)?

Answer

DLR is a runtime environment that allows you to integrate dynamic languages with the Common Language Runtime (CLR) by adding a set of services, such as expression trees, call site caching, and dynamic object interoperability to the CLR.

The System.Dynamic and System.Runtime.CompilerServices namespaces are used to hold the classes for DLR. It also provides dynamic features to statically-typed languages, such as C# and Visual Basic to enable their interoperation with dynamic languages.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2423
Q:

How can you deploy an ASP.NET Web application?

Answer

You can deploy an ASP.NET Web application using either the Windows Installer deployment or ClickOnce deployment technique.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2402
Q:

How can you send an email message from an ASP.NET Web page?

Answer

You can use the System.Net.Mail.MailMessage and the System.Net.Mail.SmtpMail classes to send an email in your Web pages. In order to send an email through your mail server, you need to create an object of the SmtpClient class and set the server name, port, and credentials.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2401
Q:

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

Answer

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

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2398
Q:

What are the ways of preserving data on a Web Form in ASP.NET?

Answer

These objects provide two levels of scope:


Application State


Data stored in the application object can be shared by all the sessions of the application.


Application object stores data in the key value pair.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Software Architect

0 2380