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.

“Web.config” files apply settings to each web application , while “Machine.config” file<br />

apply settings to all ASP.<strong>NET</strong> applications.<br />

(B) What’s a SESSION and APPLICATION object ?<br />

Session object store information between HTTP request for a particular user.While<br />

application object are global across users.<br />

(A) What’s difference between Server.Transfer and<br />

response.Redirect ?<br />

Following are the major differences between them:-<br />

√<br />

√<br />

√<br />

Response.Redirect sends message to the browser saying it to move to some<br />

different page.While server.transfer does not send any message to the browser<br />

but rather redirects the user directly from the server itself. So in server.transfer<br />

there is no round trip while response.redirect has a round trip and hence puts<br />

a load on server.<br />

Using Server.Transfer you can not redirect to a different from the server itself.<br />

Example If your server is www.yahoo.com you can use server.transfer to move<br />

to www.microsoft.com but yes you can move to www.yahoo.com/travels , i.e.<br />

within websites. This cross server redirect is possible only using<br />

Response.redirect.<br />

With server.transfer you can preserve your information. It has a parameter<br />

called as “preserveForm”. So the existing query string etc. will be able in the<br />

calling page. In response.redirect you can maintain the state. You can but has<br />

lot of drawbacks.<br />

If you are navigating with in the same website use “Server.transfer” or else go for<br />

“response.redirect()”<br />

(A)What’s difference between Authentication and<br />

authorization?<br />

This can be a tricky question. These two concepts seem altogether similar but there is<br />

wide range of difference. Authentication is verifying the identity of a user and authorization<br />

is process where we check does this identity have access rights to the system. In short we<br />

124

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

Saved successfully!

Ooh no, something went wrong!