I need to call some codeBehind function from JavaScript. For this, I have a hidden button (asp:Button).
When I click this button from javaScript like:
var btn = document.getElementById("btnHidden");
btn.click();
I got an error:
System.Web.HttpException: The state information is invalid for this page and might be corrupted.
Could you please help me?
i tried like this and is working
aspx
aspx.cs
In the first button client click i tried to raise the second button click event.