Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Capturing Events before CreateChildControls in Composite Control

Reply
Thread Tools

Capturing Events before CreateChildControls in Composite Control

 
 
Lucas Tam
Guest
Posts: n/a
 
      08-17-2003
Hi all,


I think this question has been asked a bunch of times, but I couldn't find
a good answer on google groups.

What is the best way to capture events before CreateChildControls is fired?

For example, I have a nav bar with the following buttons:

<< 1 2 3 4 >>

I want to be able to capture the onClick Event before the navbar is
generated with CreateChildControls.

Any ideas?

Thanks.

--
Lucas Tam ()
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      08-17-2003
"Lucas Tam" <> wrote in message
news:Xns93DA4E58BB2E4nntprogerscom@140.99.99.130.. .
> Hi all,
>
>
> I think this question has been asked a bunch of times, but I couldn't find
> a good answer on google groups.
>
> What is the best way to capture events before CreateChildControls is

fired?
>
> For example, I have a nav bar with the following buttons:
>
> << 1 2 3 4 >>
>
> I want to be able to capture the onClick Event before the navbar is
> generated with CreateChildControls.
>
> Any ideas?


Lucas,

First of all, you will probably get better answers to this question in the
microsoft.public.dotnet.framework.aspnet.buildingc ontrols newsgroup.

Now, I'm guessing that you have a composite "Navbar" control, and that it
contains child controls which are the buttons on the nav bar. I'd say that
if you are in control of the buttons, you should set them to post back to
Navbar.UniqueID, passing an argument which identifies the button. That way,
the click event is effectively your Navbars click event, and not that of the
individual buttons.
--
John Saunders
Internet Engineer



 
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
Handling server side events before CreateChildControls Chris ASP .Net Building Controls 1 02-22-2008 02:23 AM
Why is this.Page NOT initialized when a composite control's CreateChildControls is being executed ~~~ .NET Ed ~~~ ASP .Net Building Controls 3 04-04-2005 01:26 PM
Why is CreateChildControls called when a dropdownlist (of a composite control) selected index has changed ~~~ .NET Ed ~~~ ASP .Net Building Controls 1 03-25-2005 12:34 AM
Losing Composite Control property that another Composite Control ... Chad ASP .Net Building Controls 0 02-01-2005 09:01 PM
Possible to create a composite control that has a child control that is a validator that validates the composite control itself? Jonathan Eric Miller ASP .Net Building Controls 2 07-22-2004 10:58 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