Boxing is assigning a value type to reference type
Unboxing is reverse of boxing ie. Assigning reference type
variable to value type variable.
RedirectPermanent Performs a permanent redirection from the requested
URL to the specified URL. Once the redirection is done, it also returns 301
Moved Permanently responses.
When we click submit button on a web page, the
page post the data to the same page. The technique in which we post the data to
different pages is called Cross Page posting. This can be achieved by setting
POSTBACKURL property of the button that causes the postback. Findcontrol method
of PreviousPage can be used to get the posted values on the page to which the
page has been posted.
ASP.NET has 3 Type of caching :
Caching is a technique used to increase
performance by keeping frequently accessed data or files in memory. The request
for a cached file/data will be accessed from cache instead of actual location
of that file.
In-Process stores the session in memory on the web server.
Out-of-Process Session state management stores data in an external
server. The external server may be either a SQL Server or a State Server. All
objects stored in session are required to be serializable for Out-of-Process
ViewState is stored in a hidden field on the page at client side.
ViewState is transported to the client and back to the server, and is not
stored on the server or any other external source.
ViewState is used to retain
the state of server-side objects between page post backs.
DataReader object is ‘stream-based’, ‘read-only’ and ‘forward-only’, which provides a connection based data access from a database. This contains a ‘Read ()’ method that retrieves the data stored in a data source.
A Connection Object has only one DataReader at a time. ‘Read ()’ method retrieves only one row at a time. That is data need not be completely read into the application before it is processed.