modalpopupextender

Why does ModalPopupExtender not show through javascript?

I followed several web resources to understand how to show a popup from client side, and I made this code: <asp:ImageButton runat="server" ID="btnOk" ImageUrl="imagens/btnAlterar.gif" OnClientClick="btnOkClick()" /> <asp:LinkButton runat="server" ID="dummyForPopup" Visible="false"/> <ajaxToolKit:ModalPopupExtender runat="server" Behav...

How do I get SELECT elements to display after calling Hide() on a modal popup?

When I call Hide() on a ModalPopupExtender in ASP.NET on server side, all the SELECT elements on the page are hidden in IE6. Does controlling the AjaxControlKit.ModalPopupExtender from the server side with Hide() and Show() mess things up? ...

Calling a modal popup with TargetControl in another UpdatePanel in ASP.NET

Hi, I'm trying to call a Modal Popup, but the TargetControl is in a different UpdatePanel than where the ModalPopupExtender resides. Here's the code: <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton> <...

How can controls (buttons) be set in a ModalPopup Extender panel that do NOT close the panel?

Here's the situation. When a user is editing a given piece of data, they're allowed to add messages/comments. These are stored as child records in a SQL database. Clicking on the Add Message button brings up a panel (pnlMessage) courtesy of the AJAX ModalPopup Extender. This takes some input and, when the "Send Message" button in the pa...

How do I stop a ModalPopupExtender from displaying?

I have a web service that validates some form data. The service is a ScriptService, and I am calling it from the client. I need to display a modal popup if the validation fails. If the user clicks "OK" on the modal popup, then I want to post back and save my data. "Cancel" should allow them to close the modal popup and let the user c...

How catch the ModalPopupExtenders javascript Hide call?

I have a werid situation where a modal popup gets hidden automatically when it is opened via javascript (either by doing a .open or by doing a .click on the opening button). Everything is fine when the opening button (ie TargetControl) is used. To rephrase the question - what keywords should I use to search the ScriptResource.axd or any...

Make postback when the OkButton in a ModalPopup is clicked in ASP.NET AJAX

I follow the example in Atlas: Creating a Confirmation Using the ModalPopup Extender to make a postback when the OkButton in a ModalPopup is clicked (it uses the ModalPopupExtender that comes in ASP.NET Ajax Control Toolkit), but as I can see, the Sys.WebForms.PostBackAction() is no longer present in ASP.NET AJAX (the example is for Atla...

asp.net login control

Hi, Ok, I have a masterpage, on that i have a linkbutton, popupcontrolextender, a panel as the popupcontrol and within the panel a login control. When the linkbutton is fired the popup panel reveals itself with the login control inside, if i try to login, the authenticate method does not fire. I have tried many different ways of getti...

Help me re-center a ModalPopup within an iframe when the iframe's parent window scrolls

I have a web page with an iframe in it (I don't like it, but that's the way it has to be). It's not a cross-domain iframe so there's nothing to worry about there. I have written a jQuery extension that does the centering of a ModalPopup (which is called from an overridden AjaxControlToolkit.ModalPopupBehavior._layout method) based on t...

Is it possible to fire off another button's onclientclick event??

I have a modal popup that has a targetId to a hidden button. I want the popup to occur when a button in a grid is clicked but that button is programmed behind the code and therefore the targetId would be invalid... So I wanted to attempt to set the gridview's button's onclientclick event to be the onclientclickevent of that hidden butto...

Putting ModalPopupExtender in a constant location

I've got a series of ModalPopupExtenders that I'm using to implement popup dialogs on an ASP.NET 2.0 page. When they popup it's fairly easy to specify the location where they appear using the constructor using X and Y coordinates but I'm unsure how to deal with changes of window size which alters where they should be in cartesian space....

Dotnetnuke popup login control with the modalpopupextender

I'm trying to create a modal popup login control for dnn using the ModalPopupExtender in the AjaxToolkit. An issue that I'm running into is that when I click the "Login" button on the popup login form, if the login fails for some reason or if the user needs to update some information before moving on, the modal popup is cleared and the u...

Asp.Net Modal "OK" is triggering validation... How can I stop that?

I have a pop-up modal that is displayed as soon as anyone visits a page (on page load). The modal is an agreement they must accept to continue. The problem is, when they click accept, it triggers all the client side validation, displaying all the error messages. I obviously don't want this to happen as the user hasn't even gotten a ch...

ASP.NET - Dynamic ModalPopupExtender

Hello, I have an ASP.NET page that has dynamically created LinkButton elements. Please note that these LinkButton elements are not added to a DataGrid, GridView, or Repeater. When a user clicks on one of these LinkButton elements, I want to display a dialog box. To accomplish this, I was attempting to use a ModalPopupExtender and set i...

How to set the position of the Ajax modalpopupextender

Can the position of the Ajax modalpopupextender be set either to an absolute or relative position on the page? The default puts it at page center and I haven't found a way to override this. I would like to position the popup close to the control that triggers it. ...

Stop disappearing ModalPopup panel (shown by ModalPopupExtender ) on changing text of a textbox (TextChanged event fired by AutoPostback)

Hi I have a html table inside of a panel control. It will be shown by a ModalPopupExtender by clicking on a LinkButton. inside of the panel, there is a textbox which its "AutoPostBack" property is Ture and when user enters a value in it, TextChanged event is fired but unfortunately, the panel also disapears..... what's wrong? ...

ModalPopUpExtender with checkbox validation

I have an AJAX Application that I have been working on. At this point in the development - I have a modalpopupextender with a warning message and an OK and Cancel button. I have just been tasked with changing this to be three checkboxes and having the OK button disabled until all three boxes have been checked. I'm having a difficult t...

Call javascript during modalpopup.show()

I have a javascript that disables a button for x seconds and then enables the button after x seconds pass. An update button checks for certain constraints, and if met, a modal popup is shown. The button the javascript is meant for is located in a panel displayed by this modal popup. Is there a way I can execute the javascript when the...

Trouble getting a reference to a ModalPopupExtender using javascript

I am trying to use the following code to get a reference to a modalpopupextender, but when I check the value of the javascript variable 'modal' it is always null. What is the proper way to get a reference to the AJAX control using javascript? .vb Dim myStringBuilder As New StringBuilder(246) myStringBuilder.AppendForma...

ASP.NET - Prevent Page Refresh with ModalPopupExtender

Hello, I have an ASP.NET page with 10 dynamically generated LinkButton elements. When a user clicks one of these LinkButton elements, I want to display its Text in a modal dialog. The user can then change the Text by entering a value into a TextBox. My code for this looks like the following: <asp:ScriptManager ID="theScriptManager" run...