I have loaded a user control dynamically in a Page & i want to handle a button click event in the page for a button defined in the user control.
I have tried it. This is the code.
Partial Class WebUserControl
Inherits System.Web.UI.UserControl
' Create an event that will be used in place of the Button's Click event.
Public Event SendMessage(ByVal sender As Object, ByVal e As EventArgs) ' Raise the Event, passing on the parameters from the original event
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.Event ...
Go to the complete details ...