Q
Q Dennis
Hi,
I have a user simple usercontrol with a button, created with VS2005, the
Load event fires but the Button event doesn't.
<%@ Control Language="VB" AutoEventWireup="false"
CompileWith="WebUserControl.ascx.vb" ClassName="WebUserControl_ascx" %>
<asp:Button ID="Button1" Runat="server" Text="Button" />
+=================================================
Partial Class WebUserControl_ascx
Private Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
MsgBox("Load")
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
MsgBox("Click")
End Sub
I have a user simple usercontrol with a button, created with VS2005, the
Load event fires but the Button event doesn't.
<%@ Control Language="VB" AutoEventWireup="false"
CompileWith="WebUserControl.ascx.vb" ClassName="WebUserControl_ascx" %>
<asp:Button ID="Button1" Runat="server" Text="Button" />
+=================================================
Partial Class WebUserControl_ascx
Private Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
MsgBox("Load")
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
MsgBox("Click")
End Sub