When clicking a button, I have a ModalPopupExtender (Panel) that gets displayed. I can't seem to trigger any event during that process.
Adding an event to the button that opens the ModalPopupExtender doesnt work, as it never triggers. Adding the button as a trigger in my UpdatePanel also doesnt work.
Scenario: I have a gridview with a button outside of the gridview. Clicking the button opens up a ModalPopupExtender which needs to display the checkboxes clicked on the gridview. I have the code to get the checkboxes clicked on the Gridview, however I cant seem to use an event during the process of opening the ModalPopupExtender.
Related
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?
Aspx page contains a panel having a default button called btnFilter. Panel having another button btnReset. When my focus is inside panel & I press enter its fires btnFilter click event that is OK. But first I put focus on reset button & then press enter it fires btnFilter click event instead of firing btnReset click event.
Is there any solution for this?
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 updatepanel. Inside that i have some controls for selecting search criteria. For search button onclientclick iam calling javascript functon for validation and in onclick iam calling the mathod to populate the gridview. On clicking search first time it is not loading the grid and clicking the second time it populates.
Remove from the updatePanel your code and checks for errors on the first click, then place it again.
Its probably have to do with your viewstate that is not populate correctly so your first click gets an error that you do not see because of your updatePanel.
I have a ASP.NET page where a modal popup extender is shown when we click on a link button...There is a submit button in the Modalpopup extender which inserts the data into a DB table.... the proble is there are field validators for the textboxes in the modalpopup extender...for which validation is required...
After entering the values, in the textboxes the submit is working for the second click, but not on the first click...
Can u please help me over.
Thanks in advance
Set the ValidationGroup for the validators and for the Submit button in the popup to the same value, "PopupValidationGroup" or something like that.