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.
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?
I have a page with 2 buttons on.
I want to show the updateprogress only when the page is submitted via one of the buttons, but not the other cancel button. I've been struggling for a while to come up with a solution.
Anyone know how I can do this?
Add parameter AssociatedUpdatePanelID for UpdateProgress, and set AsyncPostBackTrigger for UpdatePanel to button you want to make a postback.
If above instructions doesn't help, you can also try to wrap controls you need into asp:Panel control and set DefaultButton to your Submit button ID.
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.
i am developing a site in asp.net as front-end
In my Form,
i have a 3 text-box with validation control on it eg: requiredFieldValidator
with joinnow button. and search button with 2 textbox with no validation control on it
when i click on search button it is asking me to fill the three text box for validation and it is not redirected to other page
i need that when i click on search button my form should redirect
You need to set the ValidationGroup properties on your textbox that has the validation and the joinnow button to the same thing. When you click the button it will validate controls in its group, and thus not validate from the search button (which is in a different validation group implicitly)
solution for it is
set the property of the search button as below
CausesValidation="False"
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.