GetPostBackClientHyperlink in datagrid in ascx file
-
hello everyone... i added GetPostBackClientHyperlink in ItemDataBound in ascx file and this is the code
Dim button As LinkButton = CType(e.Item.Cells(9).Controls(1), LinkButton)
If Not (button Is Nothing) Then
e.Item.Attributes("onclick") =
Page.ClientScript.GetPostBackClientHyperlink(button, "")
End Ifand i got this error: 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. please help how can i rid at this error :(( thanks in advance...
jyn
-
hello everyone... i added GetPostBackClientHyperlink in ItemDataBound in ascx file and this is the code
Dim button As LinkButton = CType(e.Item.Cells(9).Controls(1), LinkButton)
If Not (button Is Nothing) Then
e.Item.Attributes("onclick") =
Page.ClientScript.GetPostBackClientHyperlink(button, "")
End Ifand i got this error: 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. please help how can i rid at this error :(( thanks in advance...
jyn
-
thanks for your reply.. no, i didn't. i just added the above codes then when i click the grid, i got that error.
jyn