Thursday 25 September 2014

What is the difference between HTTP-Post and HTTP-Get?




As their names imply, both HTTP GET and HTTP POST use HTTP as their underlying protocol. Both of these methods encode request parameters as name/value pairs in the HTTP request.

The GET method creates a query string and appends it to the script's URL on the server that handles the request.

The POST method creates name/value pairs that are passed in the body of the HTTP request message.

Wednesday 24 September 2014

What is Manifest?


Assembly metadata is stored in Manifest. Manifest contains all the metadata needed to do the following things:-


1. Version of assembly.
2. Security identity.
3. Scope of the assembly.
4. Resolve references to resources and classes.
5. The assembly manifest can be stored in either a PE file (an .exe or .dll) with Microsoft intermediate language (MSIL) code or in a stand-alone PE file that contains only assembly manifest information.

What is Difference between NameSpace and Assembly?


Following are the differences between namespace and assembly :-


1. Assembly is physical grouping of logical units. Namespace logically groups classes.
2. Namespace can span multiple assembly.

What is NameSpace?


Namespace has two basic functionality :-


1. NameSpace Logically group types, example System.Web.UI logically groups our UI related features.
 

2. In Object Oriented world many times its possible that programmers will use the same class name.By qualifying NameSpace with classname this collision is able to be removed.

What are the different types of Assembly?



There are two types of assembly Private and Public assembly. A private assembly is normally used by a single application, and is stored in the application's directory, or a sub-directory beneath. A shared assembly is normally stored in the global assembly cache, which is a repository of assemblies maintained by the .NET runtime. Shared assemblies are usually libraries of code which many applications will find useful, e.g. Crystal report classes which will be used by all application for Reports.

What is the web.config file?



The Web.config file is the configuration file for the ASP.Net web application. There is one web.config file for one ASP.Net application that configures the specific application. The Web.config file is written in XML with specific tags having specific meanings. It includes data that includes connections, Session States, Error Handling, Security and so on.

For example:

< configuration >
< appSettings >
< add key="ConnectionString" value="server=localhost;uid=sa;pwd=;database=TestDB" / >
< /appSettings >
< /configuration >