Wednesday 19 October 2016

ASP and C# .Net technical concept ,tricky interview questions answer.

Difference between GET and POST

Both GET and POST methods are used for the data transfer between the web pages.

GET :

1.  It is mainly used for small data.
2.  It is is not secure 
     Because  the data which we are passing will be visible in the url so we can't keep the secure.
3.  There is also limited data which can be passed in case of GET method.
      It is passing max 255 character.

POST :

1.  It is used for transferring the large data.
2.  In post data passing  between the pages where we can keep the secure data and can transfer it.
3.  Data passing between the pages will not be visible so it is more secure.
     Compare to GET the POST method is more secure. 


Session state modes in  AspDotNet

Following are the different session state storage options in ASP .NET :

1.  In-Processis  :

A. It is the default approach. 
B. It stores session state locally on same web server memory where the application is running.


2.  StateServer mode  :

A. In StateServer mode stores session state in a process other than the one where application running.
B. It  has added advantages that session state is accessible from multiple web servers in a Web Farm. C. In StateServer mode session state will remain preserved even web application is restarted.

3.  SQLServer mode  :

A. In this mode stores session state in SQL Server database. 
B. It has the same advantages as that of StateServer.

4.  Custom modes  :

A. It allows to define our custom storage provider.

5.  Off mode  :

A. It  disables session storage.




No comments:

Post a Comment