Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Вставка тэгов / 2 сообщений из 2, страница 1 из 1
28.04.2006, 12:11
    #33696986
met-al
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Вставка тэгов
Содержимое многострочного TextBox сохраняю в БД.
Если текст содержит тэги (<br>, например), то при попытке сохранить текст в БД выдает ошибку:

Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (TextBox2="...<br>1. Нижний Новгор...").

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Как с этим бороться?
...
Рейтинг: 0 / 0
28.04.2006, 12:59
    #33697187
vladgrig
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Вставка тэгов
...
Рейтинг: 0 / 0
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Вставка тэгов / 2 сообщений из 2, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]