Results 1 to 8 of 8

Thread: [RESOLVED] Model pop up autopostback

  1. #1

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    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.

  3. #3

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    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.

  5. #5

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    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.

  7. #7

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    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
  •  



Click Here to Expand Forum to Full Width