.NET Questions

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

0 2344
Q:

Explain how a web application works.

Answer

A web application resides in the server and serves the client’s requests over internet. The client access the web page using browser from his machine. When a client makes a request, it receives the result in the form of HTML which are interpreted and displayed by the browser.


A web application on the server side runs under the management of Microsoft Internet Information Services (IIS). IIS passes the request received from client to the application. The application returns the requested result in the form of HTML to IIS, which in turn, sends the result to the client.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology
Job Role: Software Architect

0 2290
Q:

Which interface implements the standard query operators in LINQ?

Answer

The standard query operators implement the IEnumerable<T> or the IQueryable<T> interface in C# and the IEnumerable(Of T) or the IQueryable(Of T) interface in Visual Basic.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2288
Q:

What is .NET Framework?

Answer

.NET Framework is a complete environment that allows developers to develop, run, and deploy the following applications:

 => Console applications
 => Windows Forms applications
 => Windows Presentation Foundation (WPF) applications
 => Web applications (ASP.NET applications)
 => Web services
 => Windows services
 => Service-oriented applications using Windows Communication Foundation (WCF)
 => Workflow-enabled applications using Windows Workflow Foundation (WF)

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2208
Q:

Explain how garbage collection deals with circular references?

Answer

The .Net runtime knows about all the references between the objects. It can identify all the circular references that are reachable from the root and hence finalize them to free them all at once if and when needed.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2166
Q:

Explain how a .NET application is compiled and executed?

Answer

Any code written in any .NET complaint languages when compiled, converts into MSIL (Microsoft Intermediate Language) code in form of an assembly through CLS, CTS. IL is the language that CLR can understand. On execution, this IL is converted into binary code by CLR’s just in time compiler (JIT) and these assemblies or DLL are loaded into the memory.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2162
Q:

What is the information does assembly manifest provide?

Answer

Information provided by Assembly Manifest:



  1.  Assembly Name

  2.  Version Number

  3.  Culture

  4.  Strong name

  5.  List of files inside the assembly

  6.  Reference information

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2135
Q:

What is ASP.NET?

Answer

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.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2130