estoy (intentando) usando asp.net y al publicar una página me da el siguiente error:
Cita:
y lo único que tengo en el código es lo sgte:Server Error in '/net1' Application.
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> 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.
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> 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.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("algo", MsgBoxStyle.Critical, "titulo")
End Sub
Esta funcion la llama un boton:
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
Si alguien pudiera ayudarme. Tengan en cuenta que no entiendo nada (aun) de asp.net, pero he trabajado mucho con asp.
saludos y graciass