.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification