|
-
Apr 4th, 2009, 09:03 AM
#1
Thread Starter
Just Married
[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
-
Apr 6th, 2009, 11:15 AM
#2
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.
-
Apr 6th, 2009, 04:01 PM
#3
Thread Starter
Just Married
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?
-
Apr 7th, 2009, 04:02 AM
#4
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.
-
Apr 7th, 2009, 11:31 AM
#5
Thread Starter
Just Married
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
-
Apr 7th, 2009, 03:03 PM
#6
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.
-
Apr 8th, 2009, 03:37 PM
#7
Thread Starter
Just Married
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
-
Apr 10th, 2009, 02:55 AM
#8
Re: [RESOLVED] Model pop up autopostback
Share your code for future searchers? And what did you end up doing?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|