Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between Server.Transfer and
Response.Redirect? Why would you choose one over the other?

Answer Posted / avinash

server.transfer() is used to request a page it directly
requests the page whereas response.redirect() is used it
first say browser to call the page.
Exampme:

if((name.text=="avinash")&&(password=="niit"))
{
response.redirect("mypage.aspx");
}
else
{
server.transfer("error.aspx");
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I open an ashx file?

1127


What does asp.net stand for?

1200


What are cao and sao.

1144


Explain the difference between value type and reference type?

698


How can you handle errors in Web API?

1214


What are server side controls?

1049


Explain the updatepanel?

1068


How do I send an email message from my ASP.NET page?

1005


How to prevent client side validation from the ASP.NET validation controls?

1144


Define a static class?

1028


Why and where this web.config file is used?

1130


What is advantage of asp.net?

1033


What is the difference between adding reference in solution explorer and adding references by using ?

1119


What does mvc represent in asp.net? : asp.net mvc

1275


Is asp.net and .net the same?

1113