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

Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

1075


What is a web based system?

954


Give me one example of Web API Routing?

1064


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1978


Where viewstate value is stored in asp.net?

1076


Can we set which type of comparison we want to perform by the CompareValidator control?

1008


Which object wraps the state or data of a user?

982


How are sessions stored?

982


What is mvc in angular?

964


What permissions do asp.net applications posses by default?

1065


How to display Alert in ASP.NET

1151


Why is mvc better than asp.net?

1051


If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

969


What is difference Between Authentication and authorization?

1122


Is it possible to create web application with both webforms and mvc?

972