Explain What is the difference between response.redirect & server.transfer?
Submitted by: AdministratorThe difference between Server.Transfer and Response.Redirect are as follow
1>Response.redirect sends message to the browser saying it to move to some different page while Server.transfer does not send any message to the browser but rather redirects the uyser directly from the server itself.So in Server.transfer their is no round trip while Response.redirect has a round trip hence puts a load on the server.
2>Using Sever.transfer you cannot redirect to a different server itself while using Response.redirect you can redirect to a different server also.
3>With Server.transfer you can preserve your information.It has a parameter called as "preserve form",so the existing query string etc will be avilable in the calling page.This is not possible in Response.redirect.
Submitted by: Administrator
1>Response.redirect sends message to the browser saying it to move to some different page while Server.transfer does not send any message to the browser but rather redirects the uyser directly from the server itself.So in Server.transfer their is no round trip while Response.redirect has a round trip hence puts a load on the server.
2>Using Sever.transfer you cannot redirect to a different server itself while using Response.redirect you can redirect to a different server also.
3>With Server.transfer you can preserve your information.It has a parameter called as "preserve form",so the existing query string etc will be avilable in the calling page.This is not possible in Response.redirect.
Submitted by: Administrator
Read Online Microsoft.NET 2.0 Job Interview Questions And Answers
Top Microsoft.NET 2.0 Questions
☺ | Explain What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control? |
☺ | What is 2 tier and 3 tier architecture? |
☺ | Explain the procedure to add assemly to GAC to make it shared one? |
☺ | Explain What rare the Types of JIT and what is econo-JIT? |
☺ | In .NET Compact Framework, can we free memory explicitly without waiting for garbage collector to free the memory? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |