473,791 Members | 3,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 popcontrolexten der objec that points to
this object.

<asp:ImageButto n ID="ibPractitio ners" runat="server"
ImageUrl="~/images/icons/user_16.gif"
ToolTip="Displa y Practitioners" Visible='<%#
Convert.ToBoole an(Eval("Practi tionersVisible" )) %>'
CommandName="pr actitioners" CssClass="actio n" />

<cc1:PopupContr olExtender ID="mPopupContr olExtender" runat="server"
TargetControlID ="ibPractitione rs"
PopupControlID= "pnlPractitione rs" />

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

<asp:ImageButto n ID="ibPractitio ners" runat="server"
ImageUrl="~/images/icons/user_16.gif"
ToolTip="Displa y Practitioners" Visible='<%#
Convert.ToBoole an(Eval("Practi tionersVisible" )) %>'
CommandName="pr actitioners" CssClass="actio n"
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 4011
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***@dslextre me.comwrote in message
news:uw******** ******@TK2MSFTN GP06.phx.gbl...
>I am trying to use a popup control extenter which works fine the following
way where we have an object and a popcontrolexten der objec that points to
this object.

<asp:ImageButto n ID="ibPractitio ners" runat="server"
ImageUrl="~/images/icons/user_16.gif"
ToolTip="Displa y Practitioners" Visible='<%#
Convert.ToBoole an(Eval("Practi tionersVisible" )) %>'
CommandName="pr actitioners" CssClass="actio n" />

<cc1:PopupContr olExtender ID="mPopupContr olExtender" runat="server"
TargetControlID ="ibPractitione rs"
PopupControlID= "pnlPractitione rs" />

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

<asp:ImageButto n ID="ibPractitio ners" runat="server"
ImageUrl="~/images/icons/user_16.gif"
ToolTip="Displa y Practitioners" Visible='<%#
Convert.ToBoole an(Eval("Practi tionersVisible" )) %>'
CommandName="pr actitioners" CssClass="actio n"
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
12434
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, 'height=200,width=400,status=no,toolbar=no, menubar=no,location=no resizable=no scrollable=no'); but I can't seem to invoke the client side script from within a Server Side Form. I know I can use the context with to Response.redirect or Server.transfer to return a
5
2822
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 instance, using the IExtenderProvider interface, you can specify properties, but there is nothing documented about linking into a control's events. For instance, in my application, there are specific formatting, functionality and validation for...
1
2101
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 button. However , I need to display this popup only if some statement is TRUE , otherwise I will update database and redirect to another page . How can I do this ?
10
4344
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 link button then the modal popup extender will be displayed... all thing is working well but when modal popup extender displays at that time in the back side collapsible extender also works that is not desirable situation of...
1
3712
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 link button then the modal popup extender will be displayed... all thing is working well but when modal popup extender displays at that time in the back side collapsible extender also works that is not desirable situation of the modal popup...
0
2841
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. When I double click on the button in design view (it creates the method protected void Button1_Click(object sender, EventArgs e) { } but when I run the app and click on the button I get a runtime error this._postBackSettings.async' is null or...
1
1409
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 address the control through code I cannot see how to set this property. Any Ideas?
5
10880
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 input then send an e-mail. The user control has 2 views – view 1 –e-mail input form, view 2 confirmation that e-mail has been sent.
0
2920
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 has three rows with a slider control in each row created dynamically. The problems what I have are 1) handler image does not get displayed, I have set the handleImageUrl and have moved the handlecssclass and railcssclass into local style sheet 2)...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.