.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 3965
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 3944
Q:

Explain ADO.NET in brief.

Answer

ADO.NET is a very important feature of .NET Framework, which is used to work with data that is stored in structured data sources, such as databases and XML files. The following are some of the important features of ADO.NET:

 =>   Contains a number of classes that provide you with various methods and attributes to manage the communication between your application and data source.


 =>   Enables you to access different data sources, such as Microsoft SQL Server, and XML, as per your requirements.


 =>   Provides a rich set of features, such as connection and commands that can be used to develop robust and highly efficient data services in .NET applications.


 =>   Provides various data providers that are specific to databases produced by various vendors. For example, ADO.NET has a separate provider to access data from Oracle databases; whereas, another provider is used to access data from SQL databases.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 3835
Q:

How many validation controls are available in ASP.NET AJAX 4.0?

Answer

The following validation controls are available in ASP.NET AJAX 4.0:




        => FilteredTextBoxExtender - Enables you to apply filtering to a text box.

        => MaskedEditExtender and MaskedEditValidator - Restricts a user to enter only a certain pattern of characters in the TextBox by applying a mask to the input.

        => ValidatorCalloutExtender - Attaches to the ASP.NET validators so that the error messages are not displayed as a simple text but as a balloon-style ToolTip.

        => NoBot - Prevents the spam/bot from filling the input forms automatically and uses the Completely Automated Public Turing test to tell Computers and Humans Apart (CAPTCHA), which is a type of challenge-response test to ensure that the response is not generated by the computer.

        => PasswordStrengthExtender - Measures the strength of the password text entered within the text box by validating with the different strength specified parameters

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 3632
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 3506
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 3476
Q:

Which utility allows you to reference an assembly in an application?

Answer

An assembly can be referenced by using the gacutil.exe utility with the /r option. The /r option requires a reference type, a reference ID, and a description.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

1 3468
Q:

What is the purpose of reserved word using in C#?

Answer

A keyword that specifies that types in a particular nemespace can be referred to without requiring their full qualified type names. 'using' reserved word always come with namespaces. eg. using systems so because of this useful classes supplied by Microsoft which are contained by system namespace are availble for user.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

0 3243