I'm working on an existing code and came across a ASP button which has a onClick and onClientClick event on it.
I'm trying to generate a click event from an external Javascript file so that both the events are triggered.
I'm using the below line to achive it-
document.getElementById("ID_ReleaseUserAuthPending_okBtn").click();
But the OnClientClick event is being triggered as expected, but the onClick event isn't. i.e., The Javascript method is being processed, but the onClick() in the C# codebehind isn't.
Please help me out if there is any way where I can call the onClick event too.
Thanks in advance.