Dynamic content modal popup?

Last post 11-08-2009 10:28 PM by mohammed askar. 5 replies.

Sort Posts:

  • Dynamic content modal popup?

    11-08-2009, 6:54 AM

    Hi,

    I am in a situation where I need to show several kinds of modal popup to the client, in which some needs to prompt with OK and Cancel and some needs to just show information and some needs to give List to user to select from an item and click OK to perform some operations etc.
    So how can I achieve this using single AJAX Modal Popup? Is there any way to override methods or do anything to add extra functionalities in Modal Popup and fire them to show on Server event (not on postback)?

    Filed under:
  • Re: Dynamic content modal popup?

    11-08-2009, 7:58 AM
    • Contributor
      6,153 point Contributor
    • alaa9jo
    • Member since 07-01-2009, 1:17 PM
    • Jordan
    • Posts 1,124

    When you said:

    saad ahmed khan:
    I am in a situation where I need to show several kinds of modal popup to the client

    You meant showing all of them at the same time or only one will be shown?

    Best Regards,
    Ala'a Alnajjar
    ----------------------------------------------------
    Please remember to click “Mark as Answer” on the post(s) that help(s) you even if they were for the same person.
    Also remember to close the thread by selecting “Resolved”,you will find it in your first post.

    Convert C# to VB.net and visa versus

    My Webblog
  • Re: Dynamic content modal popup?

    11-08-2009, 9:56 AM

    I meant showing one at a time. However multiple popups can be considered to be shown in my scenario (if possible).

  • Re: Dynamic content modal popup?

    11-08-2009, 10:25 AM
    Answer
    • Contributor
      6,153 point Contributor
    • alaa9jo
    • Member since 07-01-2009, 1:17 PM
    • Jordan
    • Posts 1,124

    Showing one at a time is possible,you will need to change your modalpopextender properties like PopupControlID.

    Here is my idea,you will create multible asp panels but each one must be hidden and has it's own controls and data,when you want to show a specific panel,in codebehind:

    1) Change that panel's visible to true

    2)You will need a code,something like this:

    ModalPopupExtender1.PopupControlID = "Panel1";
    ModalPopupExtender1.OkControlID="btnOK";
    ModalPopupExtender1.CancelControlID = "btnCancel";

    of course the TargetControlID can be set dynamically too,or set it to a faik button (button/linkbutton with a style (display:none)),then show/hide the modal popup only by code.


    Best Regards,
    Ala'a Alnajjar
    ----------------------------------------------------
    Please remember to click “Mark as Answer” on the post(s) that help(s) you even if they were for the same person.
    Also remember to close the thread by selecting “Resolved”,you will find it in your first post.

    Convert C# to VB.net and visa versus

    My Webblog
  • Re: Dynamic content modal popup?

    11-08-2009, 10:01 PM
    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: Dynamic content modal popup?

    11-08-2009, 10:28 PM
    • Participant
      1,211 point Participant
    • mohammed askar
    • Member since 09-01-2009, 4:23 AM
    • Sri Lanka
    • Posts 295
    Please mark as answered, if this help you.
Page 1 of 1 (6 items)