Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
response.redirect
|
|||
|---|---|---|---|
|
#18+
Гуру, подскажите пожалуйста! Есть win2003+iis 6, некое приложение ASP (не .net) имеет место проблема, связанная с тем, что после response.redirect и response.end "падает" application - то есть завершается. В msdn по этому поводу сказано применительно к ASP.Net: If you use the Response.End, Response.Redirect, or Server.Transfer method, a ThreadAbortException exception occurs. You can use a try-catch statement to catch this exception. The Response.End method ends the page execution and shifts the execution to the Application_EndRequest event in the application's event pipeline. The line of code that follows Response.End is not executed. This problem occurs in the Response.Redirect and Server.Transfer methods because both methods call Response.End internally. и метод решения: For Response.End, call the HttpContext.Current.ApplicationInstance.CompleteRequest method instead of Response.End to bypass the code execution to the Application_EndRequest event. • For Response.Redirect, use an overload, Response.Redirect(String url, bool endResponse) that passes false for the endResponse parameter to suppress the internal call to Response.End. For example: Response.Redirect ("nextpage.aspx", false); If you use this workaround, the code that follows Response.Redirect is executed. • For Server.Transfer, use the Server.Execute method instead. Но проблема в том, что все эти методы решения в старом добром ASP не работают! Подскажите, как исправить? Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.03.2006, 20:55 |
|
||
|
response.redirect
|
|||
|---|---|---|---|
|
#18+
А почему вы думаете что application завершается? Этого не должно происходить при редиректе Какие симптомы? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.04.2006, 15:36 |
|
||
|
|

start [/forum/topic.php?fid=18&msg=33644864&tid=1392767]: |
0ms |
get settings: |
7ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
61ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 249ms |
| total: | 382ms |

| 0 / 0 |
