I am creating an ASP.NET custom control for my web application which is basically an ASP.NET button Control which contains multiple & lt; Div & gt; element (for style purposes).
How can I create a click event handler for my custom control so that my control works as an ASP.NET button?
Ie.
& lt; Cc: Button ID = "mybutton" runat = "server" text = "submit" /> Sub MyButton_Click (as the sender object, and eventArgs) handles MyButton. Click End Sub
In the back code, declare an event in your class:
Public Event Clicks (Object as Sender, EventArgs as E) Then when you click on Event for Constinuent Button, Event Increase
Sub BTN Button (sender as object, event as ARG) handles BTT button. Click RaiseEvent Me.Click (Me, EventArgs) End Sub
Comments
Post a Comment