Listbox appears through modal popup extender - asp.net

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.

Related

prevent modalpopup closing on postback

I have a textbox, button and gridview inside jquery modal popup. On page load I display the modal popup and enter a value in textbox then click button. In code-behind I wrote some functionality to calculate something and displayed it in the gridview but the modal popup should not close. In my case, while post back the modal popup closed. I'am not using modalpopupextender and update panel, without using modalpopup extender and update panel how to prevent modal popup closing while post back?

How to use ASP Controls inside a jQuery Dialog box ?

I have a div which is working as a jQuery Dialog box. Inside that I have two asp:ListBoxes and a asp:button. I want to select an Item from the ListBox1 and when clicking the button that Item should move to ListBox2. But when I clicking on the button Postback occurs and closes the jQuery Dialog.
How can I solve this ?
Put an UpdatePanel "inside" the Dialog Box and put asp:ListBoxes inside UpdatePanel so you prevent page from doing refresh and also Dialog Box doesn't disappear because it's outside of UpdatePanel.

Using ModalPopupExtender in ASP.NET Repeater

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!

Problem with Ajax control toolikt Modal Pop control

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.

set focus to user control, and blur base page

I have a progress bar (which is a user control). When user, click a button, this progressbar will get displayed. The issue is ...even if the progressbar is visible, I am able to set focus to other controls in base page. I need to blur the base page...and set focus to user control.
Plz help me ...Thanks in advance...!
The latest version of the ASP.Net AJAX toolkit has a ModalPopup which takes care of this behaviour for you - just set the PopupControlID of the Modal Popup Extender to the ID of your control and the TargetControlId to the button which will trigger the popup.

Resources