I have multiple usercontrols in my home.aspx page.In the Header.ascx I have button imgbtnCreateAccount,On Click of this button modal popup appears on screen.
Now apart from this I have Product search User control ProductSearch.ascx.I am retrieving data from database for both the usercontrols. In producdtsearch.ascx page I have label, textbox and submit button.
If I leave textbox blank and press enter,it gives me required field validator which is fine,but when I type something in textbox and press enter it gives me modal popup which should not happen.It appears for all the other usercontrols which is textboxes in it.I have tried adding default button to the panel in which modal popup appears,but still nogo.Also tried changing the text property of imgbtnCreateAccount,still no go.
I also tried to set tetbox property to autopostback=true,but what haapens is that, the background of modal popup blinks for a second and then goes off. Modal popup should only appear on click of imgbtnCreateAccont which is Header.ascx page and nwhile entering tect in any of the textboxes of other usercontrols.Kindly suggest the resolution.
Issue got resolved as i added panel and inside the panel i have div which contains table.there is button in table.i have set the default button property of panel to this button name and the issue got resolved.
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 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.
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 ASP.NET web application that is using RegularExpressionValidator controls inside of a user control. The user control is placed inside of a panel with an ajax:modal popup. When I click the link, it will open the popup displaying the user control.
What is happening is when I click the link to open the popup, it is throwing a postback and activating the validators before the user has any opportunity to type anything into the boxes. I need to be able to click the link, open the popup, fill out the text boxes, and submit. The validators should only run when the submit button is clicked. Any ideas?
setting the validators parameters on the load in the code behind of the popupbox might fix your problem
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.