Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > UserControl - Doesn't fire child events

Reply
Thread Tools

UserControl - Doesn't fire child events

 
 
Q Dennis
Guest
Posts: n/a
 
      09-20-2004
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


 
Reply With Quote
 
 
 
 
Anthony Hunter
Guest
Posts: n/a
 
      09-20-2004
I believe I am having this same problem. See my post with the subject:
Linkbutton in User Control Not Working.

Tony

"Q Dennis" <> wrote in message
news:%...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
Events doesn't fire up for buttons in a web usercontrol - Help KK ASP .Net Web Controls 0 01-22-2005 12:22 PM
Events doesn't fire up for buttons in a web usercontrol - Help KK ASP .Net 0 01-22-2005 12:22 PM
Events doesn't fire up for buttons in a web usercontrol - Help KK ASP .Net Building Controls 0 01-22-2005 12:22 PM
How do I: Main thread spawn child threads, which child processes...control those child processes? Jeff Rodriguez C Programming 23 12-09-2003 11:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57