Popup dialog
My purpose of closing this popup dialog is when some filters in my page was changed this popup dialog is no longer relevant so I wanted to close it under my List item SelectedIndexChanged event but I could find any solution yet. Although user can just click the close button but It would be better if it can be done in code.
Glad if you can help. Thanks
Related
I have a problem a few days ago that I cannot solve:
I have a modals popups extender from asp.net that when pressed on a button opens another popup (if something changes, both are users controls only).
The problem arises at the close of the second. I am currently using:
modalpopup.Dispose ()
When you do this, the modal pop up leaves, causing the first to stop responding.
If you need, I can attach some part of the code that can guide you. Thank you!
When using ModalPopupExtender inside a repeater, when the page loads, ALL of the popups appear without being called ( one for each item in the repeater) and then rapidly dissappear. With this, the popup works , but the problem is these popups being showed at the beginning. The popup is an OK/CANCEL popup, that triggers a postback when OK is clicked and does nothing when cancel is clicked. It is loaded on page load so that it exists when the user clicks on a linkbutton on the repeater. When the user clicks on the linkbutton, our intention was taht the popup appear directly without doing a postback, and this was achieved , just that small problem that random parade of popups at the beginning!thank you in advance!
I was not able to answer until now, sorry.
Turns out the HTML code and the CSS had conflicting codes and that made the popup appear!
I have an ajax control toolkit modal popup on my page and in that modal popup i have a gridview on which user select some item through checkbox on each row of gridview. Whenever user check or uncheck on checkbox my modal popup automatically hide. I have set autopost property of checkbox set to true becuase im perporfing some calculation on each checkchanged event. what may be the problem
Your page is posting back because of the autopostback="true" on the checkbox, thus hiding the modal popup.
Look up 'ASP.Net Page Lifecycle' for further understandinf. It is important to know how this works.
I'm sure you'd also like to know how to solve this.
You could:
Set AutoWireUp=false on the page, but then you'd have to wire all events on the page manually. Since you aren't familiar with the Page Lifecycle, I'm not sure how successful you'd be.
Use a javascript-only modal popup.
Perhaps an UpdatePanel can be used.
I have a base page in which i have a listbox.
The base page is also having a modal popup extender.
When the modal popup extender appears over listbox, the listbox appears through modal poup.
That is, only for listbox, the popup extender becomes transparent.
What shud I do for this?
My understanding is that, since listboxes/dropdowns are windows controls, they will always appear over the modal popup.
I haven't tested this, but your best bet may be to write some code in the button click handler that launches the popup and either diable or hide the offending control.
Please note this is a popup and NOT modal popup. The users do not want a modal popup.
Is it a good idea to use an Ajax Popup Control extender in the following circumstances;
I want to populate a textbox. When the user clicks on it, he sees a popup window.
In the popup window you can enter value of the field, or make a selection from a drop down list. When you have decided, you can either click on a submit button to commit your changes, or click on a cancel button to ignore your changes.
By experimenting I have found how to do this, apart from the cancel button.
How do I do this? Or should I try something else?
You might want to check out this jquery plugin
http://labs.abeautifulsite.net/projects/js/jquery/alerts/demo/
http://developer.yahoo.com/yui/examples/container/dialog-quickstart.html has a good example of what you are looking for