Вопрос по asp.net, exception – Неверный аргумент обратной передачи или обратного вызова

3

Error: User Rate Limit Exceeded

Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Edit:Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded jwarzech
Error: User Rate Limit Exceeded JasonS

Ваш Ответ

5   ответов
0

1

0

<%@ Page ... EnableEventValidation = "false" />
Error: User Rate Limit Exceeded jwarzech
0

<form>those

EnableEventValidation = "false"<form>

<form>

1

function HTMLEncodeAngularBrackets(someString)
{
var modifiedString = someString.replace("<","&lt;");
modifiedString = modifiedString.replace(">","&gt;");
return modifiedString;
}

protected override void Render(HtmlTextWriter writer)
{
ClientScript.RegisterForEventValidation(myButton.UniqueID.ToString());
base.Render(writer);
}

protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostback)
{
// Create controls
// Bind Grid
}
}

Похожие вопросы