johntrepreneur
johntrepreneur

Reputation: 4694

HttpServerUtility.Transfer vs Server.Transfer?

What's the difference between HttpServerUtility.Transfer and Server.Transer?

Upvotes: 0

Views: 1128

Answers (2)

Guffa
Guffa

Reputation: 700272

They are the same. The name of the class that has the Transfer method is HttpServerUtility, but an instance of the HttpServerUtility is available from several objects through the Server property.

For example, the Page class has a Server property, so while you are inside methods for a web page, you can use Server.Transfer to call the method.

Upvotes: 4

SLaks
SLaks

Reputation: 887375

Server.Transfer is a VBScript method in ASP Classic.

HttpServerUtility.Transfer is an ASP.Net method that does the same thing.

Upvotes: 2

Related Questions