[RESOLVED] Model pop up autopostback
Hello friend
I am opening a user control in a model popup of AJAX, I have one check box on that user control If I set autopostback property of that checkbox to true and then click on checkbox than it will make visible false to model popup. I think that is because of autopostback and page load.
But I want to reload a user control again in modelpopup, how we can reload a control again in model popup without making model popup visible false.
Thanks
Shakti
Re: Model pop up autopostback
The nature of the modal popup is that it is designed to get the user to do just one thing and then submit that information to the page. If you want the modal popup to show up again, then you'll need to call it again on your page load.
Re: Model pop up autopostback
If I will call it again that one time it will be visible false and then it visible again.
is that good idea?
Re: Model pop up autopostback
Not really, the user will find it annoying. OK, let's have a look at the bigger picture - why are you trying to do a postback in a modal popup? There must be a more intuitive way.
Re: Model pop up autopostback
I have a check box on model pop up... Now I want to show data from a condition if check box==true than other data from DB
and if it is false then else data
My check box set to autopostback=true..... And I want to do the code on check box checked changed
Thanks
Re: Model pop up autopostback
Yes you've explained what you're trying to do, but I'm trying to get to the why of it. You see, what you describe can be done in a simple extender or an updatepanel. The modalpopup is meant to get just one piece of information from the user and get the page to process it. You're attempting to use it as a page/control in its own right and so you are going to run into either difficulties or weird behavior. Have a look at this thread, I don't know if it helps:
http://forums.asp.net/p/1018610/1374063.aspx
But my point is that if there is logic in data being displayed, it should be on the main part of the page itself rather than in a modal popup.
Re: Model pop up autopostback
Ok I had done that I just create and event handler for model pop up and call it on page
Thanks
Re: [RESOLVED] Model pop up autopostback
Share your code for future searchers? And what did you end up doing?