G
Guest
I tried to use validation in asp.net 2.0 with the following code.
<%@ Page Language="c#" %>
<html>
<body>
<form runat="server">
<asp:TextBox ID="abc" runat="server">
</asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="abc"
runat="server"></asp:RequiredFieldValidator>
<asp:LinkButton runat="server">click</asp:LinkButton>
</form>
</body>
</html>
I got the javascript error:
"Error: WebForm_DoPostBackWithOptions is not defined
Source File: javascript:WebForm_DoPostBackWithOptions(new
WebForm_PostBackOptions("ctl02", "", true, "", "", false, true))"
Then I view source and found script tags loading external javascript files.
I tried to load it directly in the browser and it showed me this error.
URL
http://localhost/WebResource.axd?d=CRPh045yFpljm8l46VDATQ2&t=632664526791296187
ERROR:
System.Security.Cryptography.CryptographicException: Padding is invalid and
cannot be removed.
I googled but I cannot find an answer.
I would really appreciate if anyone could help. Thanks!!!
<%@ Page Language="c#" %>
<html>
<body>
<form runat="server">
<asp:TextBox ID="abc" runat="server">
</asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="abc"
runat="server"></asp:RequiredFieldValidator>
<asp:LinkButton runat="server">click</asp:LinkButton>
</form>
</body>
</html>
I got the javascript error:
"Error: WebForm_DoPostBackWithOptions is not defined
Source File: javascript:WebForm_DoPostBackWithOptions(new
WebForm_PostBackOptions("ctl02", "", true, "", "", false, true))"
Then I view source and found script tags loading external javascript files.
I tried to load it directly in the browser and it showed me this error.
URL
http://localhost/WebResource.axd?d=CRPh045yFpljm8l46VDATQ2&t=632664526791296187
ERROR:
System.Security.Cryptography.CryptographicException: Padding is invalid and
cannot be removed.
I googled but I cannot find an answer.
I would really appreciate if anyone could help. Thanks!!!