I am working on a project that involves a normal image for delete and an Asp.Net button. The requirement is that when the user clicks on the image which is located inside the JavaScript code, I need to trigger a click event on the Asp.Net button so that it can perform its operation.
Is there any way to achieve this functionality from the client side? Here is the HTML representation of my normal button:
This is how my Asp.Net button looks like:
<asp:Button ID="Button1" runat="server" Text="Button" />
Below is the code behind for handling the button click event:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
//Do something//
End Sub