473,382 Members | 1,392 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,382 software developers and data experts.

Ajaxtoolkit Popup Control Extender and javascript function

I am trying to use a popup control extenter which works fine the following
way where we have an object and a popcontrolextender objec that points to
this object.

<asp:ImageButton ID="ibPractitioners" runat="server"
ImageUrl="~/images/icons/user_16.gif"
ToolTip="Display Practitioners" Visible='<%#
Convert.ToBoolean(Eval("PractitionersVisible")) %>'
CommandName="practitioners" CssClass="action" />

<cc1:PopupControlExtender ID="mPopupControlExtender" runat="server"
TargetControlID="ibPractitioners"
PopupControlID="pnlPractitioners" />

The problem is I need to add a onClientClick event and this doesn't get
called when the extender is tied to it:

<asp:ImageButton ID="ibPractitioners" runat="server"
ImageUrl="~/images/icons/user_16.gif"
ToolTip="Display Practitioners" Visible='<%#
Convert.ToBoolean(Eval("PractitionersVisible")) %>'
CommandName="practitioners" CssClass="action"
onClientClick="logName(this)"/>

Here logName(this) never gets called.

I want this function to be called before the popup extender so I can log
this action.

Is there a way to do this?

Thanks,

Tom
Jun 27 '08 #1
1 3980
I just found out that not only does it disable the onClientClick event of
the TargetControl, but also others. In this case, my images are in a
DataList and the OnItemCommand does not fire for the icon that has the PCE
connected to it. All the others fire fine. As soon as I point the
TargetControlID at a different image, the event will not fire for that one
but now it will for the one that didn't work before.

Why is this?

Thanks,

Tom

"tshad" <ts***@dslextreme.comwrote in message
news:uw**************@TK2MSFTNGP06.phx.gbl...
>I am trying to use a popup control extenter which works fine the following
way where we have an object and a popcontrolextender objec that points to
this object.

<asp:ImageButton ID="ibPractitioners" runat="server"
ImageUrl="~/images/icons/user_16.gif"
ToolTip="Display Practitioners" Visible='<%#
Convert.ToBoolean(Eval("PractitionersVisible")) %>'
CommandName="practitioners" CssClass="action" />

<cc1:PopupControlExtender ID="mPopupControlExtender" runat="server"
TargetControlID="ibPractitioners"
PopupControlID="pnlPractitioners" />

The problem is I need to add a onClientClick event and this doesn't get
called when the extender is tied to it:

<asp:ImageButton ID="ibPractitioners" runat="server"
ImageUrl="~/images/icons/user_16.gif"
ToolTip="Display Practitioners" Visible='<%#
Convert.ToBoolean(Eval("PractitionersVisible")) %>'
CommandName="practitioners" CssClass="action"
onClientClick="logName(this)"/>

Here logName(this) never gets called.

I want this function to be called before the popup extender so I can log
this action.

Is there a way to do this?

Thanks,

Tom


Jun 27 '08 #2

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

Similar topics

12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
5
by: Richard Brown | last post by:
Ok, I've been looking through the .NET SDK docs and stuff. I'm wondering if you can provide a control extender that does generic validation or functionality just by dropping it on the form. For...
1
by: Orit | last post by:
I have a question regarding usage of AJAX Control Toolkit's Popup Control Extender . I am using the Popup Control Extender to display a popup dialog ( panel ) from my asp.net page on click of a...
10
malav123
by: malav123 | last post by:
Hi, In my master page i have right pannel, in which i am using the user control and collapsiblePanelExtender and in that right panel there is one link button named "Event", so...
1
malav123
by: malav123 | last post by:
Hi, In my master page i have right pannel, in which i am using the user control and collapsiblePanelExtender and in that right panel there is one link button named "Event", so if user clicks on that...
0
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am using a popup control extender (ajax control) and have placed a .net button on the panel that is displayed when the hyperlink is selected that is the target control of the popup extender. ...
1
by: Rory Becker | last post by:
Hi all So I have a simple page with a textbox and an MaskEditExtender whose target is the textbox. I appear to be able to set the Mask property of the Extender declaratively but when I...
5
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
Hi all Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net, visual studio 2008): I have created a user control (e-mail enquiry form) which is designed to accept text...
0
by: sanrek | last post by:
Hi Folks, Slider control is driving me nuts, below is the code from my test page's page load event, nothing great about code, I have a place holder control into which I am adding a table which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.