CONNECT WITH US

Featured Post

ASP.NET : Difference between Server.Transfer and response.Redirect

Get article update by Email
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 user directly from the server itself. So in server.transfer there is no round trip while response.redirect has a round trip and hence puts a load on server.

Using Server.Transfer you can not redirect to a different from the server itself. Example if your server is www.yahoo.com you can use server.transfer to move to www.microsoft.com but yes you can move to www.yahoo.com/travels, i.e. within websites. This cross server redirect is possible only using Response.redirect.

With server.transfer you can preserve your information. It has a parameter called as “preserveForm”. So the existing query string etc. will be able in the calling page.

Use server.transfer to navigate within website. And use Response.redirect to redirect to another website.

2 comments:

PHINOMINON said...

i m creating web application and i have a prob for sending a mail can any one help me 4 coding ,
actually i have a code bt it contains a error like
{The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at}

so, wht 2 do?
plz tell me........

Nandip Makwana said...

Hi, sorry for the late reply. You can refer this article. http://dotnetexpertguide.blogspot.com/2010/06/send-e-mail-from-net-application.html If you find any difficulty then revert back.

Post a Comment