Search:
Namespaces
Discussions
.NET v1.1
Feedback
Control not firing Click
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngcontrolsvb' list
.
Jonathan Austin
I have developed a really simple custom control. I am inheriting from the
ImageButton
. I basically added a property and then add a couple of
attributes during the OnPreRender sub. It appears that my control is not
firing the click event (or at least my "client" page isn't picking it
up). In my code-behind of my aspx page, I do have Handles .... after my
sub that is suppose to handle the click event. I added just a plain
imagebutton to my page to test and that worked. Any ideas on this?
Thanks,
Jonathan
--------------------------------------------------------------
Jonathan Austin, President
Click here to reveal e-mail address
Solution Innovations, Inc.
http://www.solutioninnovations.com
(540) 320-4085 (Voice)
(540) 242-3385 (Fax)
--------------------------------------------------------------
Reply to this message...
youngm@nationwide.com
You can try
http://samples.gotdotnet.com/quickstart/aspplus/
and the select "Authoring Custom Controls" from the left.
I'm not sure about your specific problem , but I had a composite control
wher I had to "expose" one of the events from a subordinate control and
they had great info
(example Composition3.aspx
http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/ctrlauth/composition/Composition3.src
(warning, link may wrap))
Powerful stuff, but tricky to get started.
Jonathan Austin
<jaustin@solutioninnova T
tions.com> To: "aspngcontrolsvb" <
Click here to reveal e-mail address
>
cc:
bcc:
Subject: [aspngcontrolsvb] Control not
06/03/2002 12:03 AM firing Click
Please respond to
"aspngcontrolsvb"
I have developed a really simple custom control. I am inheriting from the
ImageButton
. I basically added a property and then add a couple of
attributes during the OnPreRender sub. It appears that my control is not
firing the click event (or at least my "client" page isn't picking it
up). In my code-behind of my aspx page, I do have Handles .... after my
sub that is suppose to handle the click event. I added just a plain
imagebutton to my page to test and that worked. Any ideas on this?
Thanks,
Jonathan
--------------------------------------------------------------
Jonathan Austin, President
Click here to reveal e-mail address
Solution Innovations, Inc.
http://www.solutioninnovations.com
(540) 320-4085 (Voice)
(540) 242-3385 (Fax)
--------------------------------------------------------------
| [aspngcontrolsvb] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngcontrolsvb.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Jonathan Austin
Hey thanks for the information. It seems if they really concentrate on
composite controls. I actually started out using a composite control.
I went back and it is now firing the events after fixing it using the tips
in those documents. The main reason I switched is that the composite control
seems to output really early in the execution cycle. I was trying to
change an ImageURL
in the click event which the
ImageButton
(in the compsite control)
used. Well I could never get
that to work by changing the imageurl in code. So I decided I would create
a new control that
just inherited from
ImageButton
. Well it now doesn't fire the click
event. If I try to put my own click event
in, it says the Imagebutton already has one (of course). Any ideas why
this is the case?
I hope I made sense in there. If I didn't, I'll try again. :)
Thanks,
Jonathan
At 12:08 PM 6/3/2002 -0400, you wrote:
[Original message clipped]
--------------------------------------------------------------
Jonathan Austin, President
Click here to reveal e-mail address
Solution Innovations, Inc.
http://www.solutioninnovations.com
(540) 320-4085 (Voice)
(540) 242-3385 (Fax)
--------------------------------------------------------------
Reply to this message...
youngm@nationwide.com
I think maybe it would help to see some sample code. Would it be possible?
Jonathan Austin
<jaustin@solutioninnova T
tions.com> To: "aspngcontrolsvb" <
Click here to reveal e-mail address
>
cc:
bcc:
Subject: [aspngcontrolsvb] Re: Control
06/03/2002 03:02 PM not firing Click
Please respond to
"aspngcontrolsvb"
Hey thanks for the information. It seems if they really concentrate on
composite controls. I actually started out using a composite control.
I went back and it is now firing the events after fixing it using the tips
in those documents. The main reason I switched is that the composite
control
seems to output really early in the execution cycle. I was trying to
change an ImageURL
in the click event which the
ImageButton
(in the compsite control)
used. Well I could never get
that to work by changing the imageurl in code. So I decided I would create
a new control that
just inherited from
ImageButton
. Well it now doesn't fire the click
event. If I try to put my own click event
in, it says the Imagebutton already has one (of course). Any ideas why
this is the case?
I hope I made sense in there. If I didn't, I'll try again. :)
Thanks,
Jonathan
At 12:08 PM 6/3/2002 -0400, you wrote:
[Original message clipped]
--------------------------------------------------------------
Jonathan Austin, President
Click here to reveal e-mail address
Solution Innovations, Inc.
http://www.solutioninnovations.com
(540) 320-4085 (Voice)
(540) 242-3385 (Fax)
--------------------------------------------------------------
| [aspngcontrolsvb] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngcontrolsvb.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
System.Web.UI.WebControls.ImageButton
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com