26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

√<br />

By default Session objects are stored in “Tempdb” , you can configure it store<br />

outside “TempDB” by running microsoft provided SQL script.<br />

Note :- “TempDB” database is re-created after SQL SERVER computer reboot.If you<br />

want to maintain session state with every reboot best is to run SQL Script and store session<br />

objects outside “TempDB” database.<br />

(A) Where do you specify session state mode in ASP.<strong>NET</strong> ?<br />

<br />

Above is sample session state mode specified for SQL SERVER.<br />

(B) What are the other ways you can maintain state ?<br />

Other than session variables you can use the following technique to store state :<br />

√<br />

√<br />

√<br />

√<br />

√<br />

Hidden fields<br />

View state<br />

Hidden frames<br />

Cookies<br />

Query strings<br />

(B) What are benefits and Limitation of using Hidden fields ?<br />

Following are the benefits of using Hidden fields :-<br />

√<br />

√<br />

√<br />

√<br />

They are simple to implement.<br />

As data is cached on client side they work with Web Farms.<br />

All browsers support hidden field.<br />

No server resources are required.<br />

Following are limitations of Hidden field :-<br />

93

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!