473,385 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

OnBubbleEvent without RaiseBubbleEvent

I have a page that has a button and there is also a usercontrol on the
page
which has an OK and Cancel button.

I'm looking at ways to trigger an event on the parent page when
the child control's OK button is clicked, so I tried adding
RaiseBubbleEvent,
and added the following to the code of the parent page:

Protected Overrides Function OnBubbleEvent(ByVal sender As Object,
ByVal e As EventArgs) As Boolean
Dim myButton As String = CType(sender, Button).ClientID

End Function
I found that any of the three buttons mentioned caused OnBubbleEvent
to fire, even when I removed RaiseBubbleEvent from the one place I had
it.

This doesn't seem correct. Or do buttons always trigger
RaiseBubbleEvent?
I have dropdown controls on the page which also can cause a postback,
but
these don't trigger the OnBubbleEvent.

Thanks for any comments
Jim
Nov 18 '05 #1
1 5186
Hi,

Buttons call RaiseBubbleEvent when their OnCommand method is invoked.
OnCommand is invoked when RaisePostBackEvent is called (Button is clicked
and it raises Click event).

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"jim corey" <jh*****@yahoo.com> wrote in message
news:1c*************************@posting.google.co m...
I have a page that has a button and there is also a usercontrol on the
page
which has an OK and Cancel button.

I'm looking at ways to trigger an event on the parent page when
the child control's OK button is clicked, so I tried adding
RaiseBubbleEvent,
and added the following to the code of the parent page:

Protected Overrides Function OnBubbleEvent(ByVal sender As Object,
ByVal e As EventArgs) As Boolean
Dim myButton As String = CType(sender, Button).ClientID

End Function
I found that any of the three buttons mentioned caused OnBubbleEvent
to fire, even when I removed RaiseBubbleEvent from the one place I had
it.

This doesn't seem correct. Or do buttons always trigger
RaiseBubbleEvent?
I have dropdown controls on the page which also can cause a postback,
but
these don't trigger the OnBubbleEvent.

Thanks for any comments
Jim

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
9
by: WalterR | last post by:
This is my first time here, so there may be earlier relevant threads of which I am unaware. Though my experience with DB2 is not extensive, such as it is was under OS/390 or equ. My main...
33
by: ankursinha | last post by:
Hi, Is it possible to write a C program that prints "Hello World" on screen without having a single semi-colon in the entire program? The extra constraint here is that u r not allowed to use...
0
by: Andreas Klemt | last post by:
Hello, I have this Protected Overrides Function OnBubbleEvent(ByVal source As Object, ByVal args As System.EventArgs) As Boolean a) Return True b) Return False c) Doing nothing... End...
0
by: Andreas Klemt | last post by:
Hello, why is OnBubbleEvent on my Parent Page fired even when I didn't do RaiseBubbleEvent in UserControl Page? When I Call RaiseBubbleEvent in the UserControl, OnBubbleEvent is called twice...
1
by: Pat | last post by:
Hi all: I have a custom datagrid that has a row of buttons in its header (it serves as a toolbar). I'm overriding the OnBubbleEvent to handle the clicks for these child buttons. However,...
5
by: Dan | last post by:
Hi, I'm going crazy here, please help. I have a parent page that has a user control on it that bubbles up data from a dropdown menu. The drop down menus are populated by a set of radio buttons,...
7
by: Ralf Gedrat | last post by:
Hello! I have some Vb.Net applications, which are terminated at indefinite times without message. If I call in the program regulated system.GC.Collect, then the program is terminated here...
5
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.