Response redirect causes client-side redirect. Visitor browser receives response from server. This response force browser to load page requested by server.
Server.Transfer terminates execution of current handler a executes other page (specified as param). From the visitor point of view this looks like no redirect takes place. The limitation of this redirect is that you can only redirect to page of your Web Application. Response.Redirect allows you redirect to any valid Url.
What is the difference between Server.Transfer and Response.Redirect?
Подписаться на:
Комментарии к сообщению (Atom)
Обо мне
Теги
- .NET (1)
- Лицензии (1)
- Anti-Patterns (16)
- ASP.NET (3)
- Bug fixes (1)
- C# (5)
- Code Review (4)
- Fun (1)
- Naming (1)
- Refactoring (20)
- Team rules (2)
- Web (2)
Архив
-
▼
2008
(10)
-
▼
июля
(9)
- Custom configuration section
- Dont' use RAR archives for files
- What is the difference between Server.Transfer and...
- Notify your team when yor are going to leave the o...
- Use "Is" prefix for methods with boolean return value
- Use Path class instead of string manipulations
- Remove old unused code
- What should you do to become good prorammer?
- IE 7.0 cookie problem
-
▼
июля
(9)
0 коммент.:
Отправить комментарий