Calling The Popup From A Popupcontrolextender Programmatically?
Sep 13, 2010I would like to call a popup of the popupcontrolextender programmatically. Is this possible?
View 1 RepliesI would like to call a popup of the popupcontrolextender programmatically. Is this possible?
View 1 RepliesI have a formview tied to a gridview and the formview shows the data selected in the grideview. The Formview has a ajax:popupcontrolextender for an image in the itemtemplate and a hyperlink to open the popupextender. When the formview loads , the popupcontrolextender opens and shows the image in it. I want the popupcontrolextender to remain closed when the form loads and open only when the user clicks the hyperlink.I tried doing popupcontrolextender.Cancel() in formview_Databound event but it did not work. Please advice. this is my markup.
[Code]....
I am displaying links in gridview. When user clicks on link....big image is displayed. Everything is working fine.
As of now i am redirecting user to LargeImage.aspx..where i am able to display the largeimage.
But I need to display the large image within a popup in the same page where gridview is present.
User must be able to close that popup and return to the page(containing gridview).
I would like to do it with a popupcontrolextender.
i put PopUpcontrolExtender in my page to learn more about this toolkit base on the Ajax tutorial but ,when i click on the button, popup modal form popped up and disapear by itself fast, here is my code:
<%
<%
@
Page
Language="VB"
AutoEventWireup="true"
CodeFile="Default.aspx.vb"
Inherits="_Default" %>@
Register
Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit"
TagPrefix="ajaxToolkit" %>
<!
<
<
DOCTYPE
html
PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">html
xmlns="http://www.w3.org/1999/xhtml">head
runat="server">
</
<
<title>Untitled
Page</title>head>body>
<form
id="form1"
runat="server">
<asp:ScriptManager
ID="ScriptManager1"
runat="server"
/>
<asp:TextBox
ID="TextBox1"
runat="server"></asp:TextBox><br
/>
<div>
<ajaxToolkit:CalendarExtender
ID="CalendarExtender1"
runat="server"
TargetControlID="TextBox1">
</ajaxToolkit:CalendarExtender>
<br
/>
<asp:TextBox
ID="TextBox2"
runat="server"
TextMode="Password"></asp:TextBox>
<ajaxToolkit:PasswordStrength
ID="PasswordStrength1"
runat="server"
TargetControlID="TextBox2">
</ajaxToolkit:PasswordStrength>
<br
/>
<br
/>
<br
/>
<asp:Button
ID="btnok"
runat="server"
Text="Pop Up Test"
Width="96px"
/>
<br
/>
<asp:Panel
ID="Panel1"
runat="server"
BackColor="#FFFFC0"
Width="184px">
<asp:Label
ID="Label1"
runat="server"
Text="This is Test"
Width="264px"
CssClass="ModalPopup"></asp:Label><br
/>
<asp:Button
ID="btnPopupOk"
runat="server"
Text="Ok"
/></asp:Panel>
<ajaxToolkit:PopupControlExtender
ID="PopupControlExtender1"
PopupControlID="panel1"
OffsetX="500"
OffsetY="100"
runat="server"
TargetControlID="btnok"
>
</ajaxToolkit:PopupControlExtender>
<br
/>
<ajaxToolkit:DropShadowExtender
ID="DropShadowExtender1"
runat="server"
Opacity="75"
TargetControlID="Panel1">
</ajaxToolkit:DropShadowExtender>
</div>
</
</
</form>body>html>
and also i can not put DropShadow="true" in my PopupControlExtender because i will get this Error: "AjaxControlToolkit.PopupControlExtender' does not have a public property named 'DropShadow'"
How can I use Ajax Popup Extender at run time Or Programmatically??
View 3 RepliesAs the part of C#.net project I have to call one function and after that open a pop up window from a button click. In Internet Explorer I can done this successfully but the same code not working on Google Chrome. The code is adding below.
protected void btnaddtogroup_Click(object sender, EventArgse)
{
fetchaddressid();
string strScript = "<script language=javascript>OpenPopup();</script>";
Page.RegisterStartupScript("callTest", strScript);
}
I have a weird problem. I have a window, on a button click I open a modal popup (using ModelPopupExtender), that let's you select a few criteria and then click a submit button. On click of submit button, I open a new window (using window.open()) that shows the status of what happened to your submitted request. However, every time this status window is opened, it goes to the login page. I am thinking the modal popup can't pass the authentication cookie to the newly opened window, but I'm not sure.
View 1 RepliesI am getting an error while calling a javascript from a dropdownlist which is placed inside a modal pop-up panel. if i am ebeding a small script like onchange="javascript:alert('hello');", it works fine. But if i m using <script> </script> for embeding a javascript its showing 'object doesn't support this property' error. when i debugged it the compiler does not get into the javascript function.
Below is a screenshot of that page.
i have a group page. i am creating a website for the group and they want to be able to see the recent facebook updates (what you see on the group's facebook wall) on their website. is this possible without having to have a facebook popup login and just programatically pass in my login information?
View 1 Repliescan i popup two or more controls using popupcontrol extender because i have 5 checkbox ( i can't use check box list ) is there any way to do this
View 1 RepliesI have a toolbar at the bottom of my site, wrapped in an lwaysVisibleControlExtender. When I press on the of links on the bottom, I want a popup to appear such that it appears joined to the link on the toolbar (very much like facebook chat). How do I use the popupcontrolextender to position the popup, even when the popup can have variable height?
View 4 RepliesI use the PopupControlExtender to show a Panel after clicking a ImageButton. The Panel can be closed by clicking the page outside the Panel. This is working fine.I added an Animation Fading Out the Panel when the Panel is clicked (I have no close button on the panel). This is working fine too.The problem comes when I click the Imagebutton (The Panel appears) followed by clicking the Panel itself (The Panel disappears). If I now click the Imagebutton again, nothing happens as if the animation was not considered finished. The Panel should have appeared again.
If I change the focus on the page, then the animation is in some way reactivated and the popup works again. I already tried the following :
- <EnableAction AnimationTarget="ImageButton1" Enabled="true" />
- Setting the focus to a random control on the page using <ScriptAction />
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/App_Themes/Images/Vraagteken.gif" OnClientClick="return false;" UseSubmitBehavior="false" ToolTip="Kies de bedrijfs sector waarvoor de tekst is bedoeld" />
I know this may be easy, but I have looked at it for a bit of time and maybe my brain is going in circle.OK, I am learing PopupControlExtender. Looks like it is a good thing to have. One (style of) example is to have a TextBox. Click on it and the PopupControlExtender will come up. Sample code may be like the Example 1 in this
Introduction.
Question:
Why there is a need to put UpdatePanel inside the Panel? It is the TextBox which needs to be updated. Why the TextBox is not put into an UpdatePanel? (I try Example 1 and it works without having to put the TextBox inside an UpdatePanel.)
I have a textbox which uses a popupcontrolextender. I would like the textbox text to be populated on page_load with default text. If I do this the page does not recognize the textbox as having text when the form is submitted. Why does the popupcontrolextender do this to the textbox and how can I make this work?
View 1 RepliesI am using C# Multiview on a log-in/forgot user name page and I would like to avoid new windows each time I change view id inside the Multiview.Right now the page uses "window.showModalDialog" and I would like to remove the js from the page.This lead me to the PopupControlExtender. How do I use the PopupControlExtender and Multiview in combination? e.g. a radiobuttom provides the desired view index and only this view is shown in the pop-up?Did I misunderstand the purpose of the extender?
View 2 RepliesI need to show a popup when the user hover over a Listview item, for this I am using the PopupControlExtender which is placed inside the Listview ItemTemplate. The popup panel always shows inside the Listview item. How can I control the positioning of the popup panel to show outside the Listview ItemTemplate ?
View 4 Repliesim working with gridview i have to send a mail to client from my client datagridview i used popupcontrol to send a mail this is my Code
<asp:TemplateField HeaderText="Call for meeting">
<ItemTemplate>
<asp:LinkButton ID="lnkBtnCall" runat="server" Text="Call" CommandName="CallForMeeting"></asp:LinkButton>
[code]...
So i use PopupControlExtender (to edit some of the fields) inside ListViewControl which itself is embeded inside an UpdatePanel.
The problem is as follows whenever you cause partail postback the popup panels are created client side outside the updatepanel. And you get more clientside controls with the same clientside ID. When you postback with popup panel the server side control eg. Texbox has Text = clientsidecontrol1.text, clientsidecontrol2.text, clientsidecontrol.text3
Is there a way to prevent this.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Secure_Test" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[Code]....
I use the PopupControlExtender to show a Panel after clicking a ImageButton. The Panel can be closed by clicking the page outside the panel. This is working fine.
I added an Animation Fading Out the Panel when the Panel is clicked (I have no button on the panel). This is working fine to.
The problem comes when I click the Imagebutton (The Panel appears) followed by clicking the Panel itself (The Panel disappears). If I now click the Imagebutton again, nothing happens as if the animation was not considered finished. The Panel should have appeared again.
If I change the focus on the page, then the animation is in some way reactivated and the popup works again. I already tried the following :
- <EnableAction AnimationTarget="ImageButton1" Enabled="true" />
- Setting the focus to a random control on the page using <ScriptAction />
Is there a way to reset the animation using Javascript ? Using "setValue(value);" ?
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/App_Themes/Images/Vraagteken.gif" OnClientClick="return false;" UseSubmitBehavior="false" ToolTip="Kies de bedrijfs sector waarvoor de tekst is bedoeld" />
As the subject says: I am wondering what the ExtenderControlId attribute of the PopupControlExtender is used for? When I click "Add Extender" through the context menu of an control in the designer, the code of a PopupControlExtender is generated, but the ExtenderControlId attribute is empty. By the way: Is there a documentation of the AjaxControlToolkit-Controls which provides a description to every Member like the ExtenderControlId?
View 1 RepliesI have two pages with TabControls and the tabcontrols have several tabpanels. On one page there are some popupcontrol extenders on the first tab, and that page works fine. On the second page, the popupcontrolextenders are on the second tab. When that page loads, I get the following jscript error:
Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element
I've tried setting the Enabled property to false for these popupcontrolextenders until that tab becomes visible. This prevents the error on page load, but but then the same error happens as soon as that tab becomes visible.
Is it possible to use a popupcontrolextender on a tabpanel, or should I give up and try something different?
I have a text box with an associated popupcontrolextender.This opens a panel containing a checkboxlist. What i want to do is add the values selected in the checkbox list to the text box when the user clicks out of the panel.I started to use the OnselectedIndexChanged, of the checkboxlist and update the text box after every checkbox has been checked / unchecked.But the checkboxlist is quite long and when you click one of the checkboxes near the bottom,because everything is in an update panel,the checkboxlist scrolls to the top after the autopostback not very user-friendly.
I have a PopupControlExtender inside of the UpdatePanel. I use it to edit some of the values on the website.
Basicly it looks like this. If you have PopupControlExtender inside of th update panel whenever a user triggers a partial postback javascript creates the popup panels outside of the UpdatePanelControl - to make sure they are always on the top of other elements. So after every postback you get more and more elements with the same clinetIDs.
Here is a code from Firebug - you can notice Panel1 and all the controls inside of it being generated 3 times when i load a page (once) and twice after two partial postbacks:
[Code]....
Oh and i use it actually inside the listview that itself is embeded in the update panel so i cant really use it outside of the update panel.
I'm trying to load a listbox with a PopUpControlExtender. I've been able to get the data but not bind it to the listbox, and have fallen short in using the following:
<%@
Page
Title="Time & Equipment"
Language="C#"
MasterPageFile="~/My_Site.master"
Theme="Theme1"%>
[Code]....
Does anybody have recent information on surmounting zorder problems with the PopupControlExtender? Web searches found a few comments that seem directly related to the problem I'm having, but no solutions... Most-suggested solution is to set the z-order to a high value on the panel containing the popup markup, but that is helping me (and didn't seem to fix the problem for others either). I'm using popup extenders within the EditItemTemplate of a ListView, and however hard I try I always end up with the other records in the listview (i.e. those using the ItemTemplate) overwriting the popup markup.I had high hopes that this problem might have gone away with release 40412 of the toolkit but it appears not
View 1 Replies