.NET Questions

Q:

What are the different types of assemblies? Explain them in detail.

Answer

The following are the two types of assemblies:



          =>  Private Assembly - Refers to the assembly that is used by a single application. Private assemblies are kept in a local folder in which the client application has been installed.

          =>  Public or Shared Assembly - Refers to the assembly that is allowed to be shared by multiple applications. A shared assembly must reside in Global Assembly Cache (GAC) with a strong name assigned to it.


For example, imagine that you have created a DLL containing information about your business logic. This DLL can be used by your client application. In order to run the client application, the DLL must be included in the same folder in which the client application has been installed. This makes the assembly private to your application. Now suppose that the DLL needs to be reused in different applications. Therefore, instead of copying the DLL in every client application folder, it can be placed in the global assembly cache using the GAC tool. These assemblies are called shared assemblies.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2292
Q:

How can different versions of private assemblies be used in the same application without a re-build?

Answer

You can use different versions of private assemblies in the same application without a re-build by specifying the assembly version in the AssemblyInfo.cs or AssemblyInfo.vb file.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

1 2279
Q:

Which among the following command is used to implement view state

A) _VIEWSTATE B) VIEW_STATE
C) VIEWSTATE_ D) None
 
Answer & Explanation Answer: A) _VIEWSTATE

Explanation:

_VIEWSTATE is the command used to implement view state

Report Error

View Answer Report Error Discuss

Filed Under: .NET - Technology
Job Role: Software Architect

0 2233
Q:

Describe how to step through code in .NET.

Answer

Steps to step through the code in .NET:



  1. Start the program in debug mode.

  2. When the first breakpoint is reached then step through can be done in one of the two ways:



  •  Press F10 to move to next line.

  •  Select debug menu and click on step over. This would step over the breakpoint to next level.


       3. Other options are: “Step Into” and “Step Out”.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2164
Q:

Session_Start: This event occurs every time when any new user visits.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

True .That event occurs whenever a new user visits

Report Error

View Answer Workspace Report Error Discuss

Subject: .NET - Technology
Job Role: Software Architect

0 2123
Q:

Which among the following is used to send data from one page to another with the URL but you can send limited size of data with the URL

A) Cookies B) View state
C) Querystring D) None
 
Answer & Explanation Answer: C) Querystring

Explanation:

Querystring is used to send data from one page to another with URL.But it can store only some minimum amount of data.Most browsers allow a limit of 255 characters on URL length

Report Error

View Answer Report Error Discuss

Filed Under: .NET - Technology
Job Role: Software Architect

0 2121
Q:

What technologies are being used in AJAX?

Answer

AJAX uses four technologies, which are as follows:




       => JavaScript

       => XMLHttpRequest

       => Document Object Model (DOM)

       => Extensible HTML (XHTML) and Cascading Style Sheets (CSS)

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

1 2085
Q:

What is the DataContext class and how is it related to LINQ?

Answer

After you add a LINQ to SQL Classes item to a project and open the O/R Designer, the empty design surface represents an empty DataContext class ready to be configured. The DataContext class is a LINQ to SQL class that acts as a conduit between a SQL Server database and the LINQ to SQL entity classes mapped to that database. This class contains the connection string information and the methods for connecting to a database and manipulating the data in the database. It is configured with connection information provided by the first item that is dragged onto the design surface.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 2082