AJAX :: Stop ModalPopupExtender From Closing Every Postback?
Sep 25, 2008
I hava an aspx page with a couple of tables and an UpdatePanel on top of the page. Everything on the page works fine until I show (from code-behind) the UpdatePanel (via ModalPopupExtender). The modal works OK after showing, but the problem is that when I close/hide it (using CancelControlID or a custom button with code behind) some control on the page stop firing events.
More exactly one Button and RowCommand on a GridView (both are NOT part of the UpdatePanel).
Here's the UpdatePanel code:
After this code is all the rest of the aspx page - including the Button and RowCommand that stop firing after showing and closing the update panel.
I have a simple example of a ModalPopup with a panel that appears in the center of the ModalPopup and a couple of buttons in that panel. One of the buttons is a cancel and the other is an OK button. No matter how many other buttons that I add each one closes the ModalPopup. I need to keep the ModalPopup open so that I can run a few calculations then click a close button.
I am not sure where this error is comming from or even if this is the right place to put this. I have this event that fires when I click a link button in the Modal Popup, and yes the link button is set to not cause validation
When this event fires for some reason the modal popup window closes. How do I stop this from happening. If you need more code I will gladly provide it.
I am using the ModalPopupExtender to show a modal dialog. In the dialog I have a Do-Something button performing a very simple operation (copying text between two textboxes which are part of the modal dialog).
Everything is inside a UpdatePanel.
Every time I activate the Do-Something button the Dialog hides !Why ?
Is there a way to make the modal dialog stay between postbacks ?
I've got a dropdown list inside an update panel. Using other controls I change the selected value based upon inputs from code and other places. Is there a way to stop the whole list being redownloaded in every update when i'm only changing the value that is selected. Reason being, is I have a few very very large lists that can take a while to download each time.
I'm using what I believe is a pretty common/boring/generic implementation of a ModalPopupExtender. I'm using client-side JS to show the dialog when the user clicks a link, and hide it if they click "cancel". I only do a postback if they truly want to save the data.
I can click the link to show the dialog, then click the cancel button to hide it, then click the link to show it... ad infinitum. If I decide to save the data via a postback, everything works well, and the dialog is hidden as a result of the postback, all as expected.
However, once the postback completes, my client-side JS show() never works again. Any attempts to click the link fail quietly; no error messages, the dialog just never shows again.
I have a dynamically create modalpopupextender within a template of a GridView. It is dynamically created on the GridView_DataBound() event.When I click the button on the GridView row it invokes the popup correctly. However, when the popup closes, a postback event occurs. Now when I click the button again, the popup doesn't appear. Im guessing this is since the page has posted back without databinding the modalpopupextender that was created as a result of the previous postback, no longer exists? So how do I get round this? If I rebind the gridview in the Page_Load of the postback then all I get is an empty gridview....
I have a textbox with an autocomplete extender.The user types in a few chars and usually gets a few to a few hundred suggestions back.And its pretty quick.This is on a formview control at the bottom by the paging. It is for a "Go to" feature.But it is returning the suggestions from the same list of search results from the previous page.(It's really the same page but I just toggle the visibility between the GridView Results and the FormView details).And if they select "All Tickets" its possible to get 5000 results from the search. Now the autocomplete is really doing the same search as the search results did which is like 46 seconds. And then weeding it down further with the prefix (chars they type in the autocomplete textbox).I have a Return to list button. And I want the Button to interrupt, stop, cancel, abort, or somehow just not wait for the WebMethod to finish, and do a PostBack right away.Since btnReturnToList is a normal postback I can't really use PageRequestManager to check if in async or last postbackelementId or anything.
I am using the jQuery Dialog in ASP.NET. I have it working fine with the exception of when I click the OK button in the dialog and if an error occurred I want to show the error in the label. By the time the dialog closing event is fired it is too late. How do I still show the dialog if an error has occurred. I don't want to close the dialog when there is an error.
I have an ASP.NET application where one of the pages hosts a 3rd party ActiveX control. A condition can sometimes occur with the ActiveX control that causes the following error message to be displayed in a Windows dialog box when Internet Explorer is closed:
Exception EIdWinsockStubError in module CADVIE~1.OCX at 0029A808.
Error on call to Winsock2 library function WSACancelBlockingCall: Either the application has not called WSAStartup, or WSAStartup failed.Without any intervention from the suppliers of the ActiveX control can I suppress this message.
I have 2 textboxes and a submit button inside a .net composite server control. I tried to only postback when submit button is clicked. I set autopostback = false for both textboxes. But either one still trigger submit button's onclick event by hitting "Enter" inside textbox. How can I stop postback by enter key?
I'm using the ModalPopupExtender control from the AJAX toolkit. This control extends a panel which contains a CreateUserWizard control. However, the validation of the CreateUserWizard control causes a postback to the server, which closes the popup. I'd like the popup to remain open, even after the postback.
I would really appreciate if someone can find out what's wrong with this code.
Here is my question. I have textboxes in a modal popup extender (City, state, zip) and there is an image button search for searching the address from the database. All this functionality is within a control (.ascx file). This control is added to the page where it needs to be displayed and is being displayed when a user click the Address button (the code for it is not shown here). The method ShowAddressSearch() in the control is being called from the page and it displays the popup.
When the user enters any of the 3 values and hits search a server event is fired up and the result should be displayed in a grid. What is happening is, when the user hits the search button the server call is made and the data fetched from the db but the modal popup closes itself here is the code for this. I would really appreciate if someone can find out where and how popup is getting closed.
I use partialupdatepanel for async refresh of webparts content. Now i have problem, that after moving of webparts all panels are refreshed. How to avoid it? Can i send data about webparts states to server without any refresh of client side?
P.S. now all webparts zone are in UpdatePanel so user see only refresh of contents inside of webparts.
I have this page where in i have a ModalPopupExtender. Now the panel that shows up as a ModalPopup has 2 buttons namely "Invite" and "Cancel". My problem is that when i click on either of the buttons postback does not occur and i am unable to run my server side code.
When i click on the "Invite" button it simply hides the ModalPopupExtender control and does nothing!!
am using ajax master page and aspx page as main pagein ajaxmasterpage i have the table n in the first row i have kept the image n in the second left column of the table i have placed the hyperlinksand when i am running the mainpage.aspx n clicking the hyperlinks the above image is also getting blinked,so how to stop the image to stop blinking
I have a modal popup extender with one control (ascx) this control has a label that on onclic method call other popup extender.
In the other hand, If a use de second popup inside an asp page the event and control work correctly. The problem is with the popup inside popup.
I have a JQuery Dialog that is opened when a button is clicked. The first time around, it should do a postback, but when the dialog closes and I click the refresh button of the broswer, it sends the data again and duplicates the data I just entered. Should I add a return false somewhere so it doesn't postback when the dialog is closed. Here is the script:
When I use a RadEditor I want to enable the editor's spell check (working thus far). After a spell check the user can either click on the radmodule (toolbar thing) to either "finish spellcheck" or "cancel." Which is all fine and dandy except the "finish" button causes a postback!! I don't want that at this point!! "cancel" more or less does what I want to happen - I mostly just want a "done" or a way to stop the postback.
I've tried an Update panel but that just grays out the text area after it does the update.
I have a textbox in an aspx page that has a TextChanged event attached to it. I also have a validator attached to the textbox.
When the text is changed, the validate triggers but in case there is an error the textchanged event is still called. Do you know if it's possible to stop the postback on textchanged if the validator fires?