Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Microsoft Technologies > Dot Net > ASP.NET

ASP.NET ASP.NET Interview Questions, Learn by sharing ASP.NET Interview Questions asked in various companies, Get Career advices, Interview Procedures from ASP.NET experts, Post asked ASP.NET Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2008, 10:03 AM
Senior Member
 
Join Date: Feb 2008
Posts: 9,095
Default What is the difference between Server.Transfer and Response.Redirect? Why

What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over the other?
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 12:04 PM
Junior Member
 
Join Date: May 2008
Posts: 20
Default

Server.Transfer is page processing form one page directly to nex page with out making any round trips back to cleints browser.it doesn't update the client url history.its safe through network.

Response.Redirect is redirects page to another browser or site.
Reply With Quote
  #3 (permalink)  
Old 07-04-2008, 04:11 PM
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default

Yes,server.Transfer isexecutes the form within the page,its not go to other page,but Response.redirect is executes the form into other page.
Reply With Quote
  #4 (permalink)  
Old 07-09-2008, 08:32 AM
Member
 
Join Date: Jul 2008
Posts: 36
Default

when user does not want to change the address of the url.Then server.transfer is very useful for existing in same url address with opening different forms . Means it proves the transfer of form in rond trip back to clients browser. It is very helpful for security purpose.
Server.Transfer is page processing form one page directly to nex page with out making any round trips back to cleints browser.
Response.Redirect is redirects page to another browser or site.
Reply With Quote
Reply

Tags
asp.net, interview questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On