I have two button as shown below:
1st Button:
<asp:Button ID="btn1" runat="server" Text="First Button" CausesValidation="False"
UseSubmitBehavior="False" />
2nd Button:
<button type="reset" id="btn2" runat="server">
<span>Second Button</span>
</button>
Now If I click btn1 I need to do some stuff and then I need to click btn2 automatically at the end of the process which needs to perform some client side operations.
This is what I need to do:
Protected Sub btn1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn1.Click
//Do some Stuff
//Here I need to make btn2 click automatically
End Sub
As my btn2 should do this:
$("#<%=btn2.ClientID%>").click(function () {
//perform some taks
}