UserControl - Doesn't fire child events

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
 
A

Anthony Hunter

I believe I am having this same problem. See my post with the subject:
Linkbutton in User Control Not Working.

Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top