Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. AJAX ModalPopUpExtender

AJAX ModalPopUpExtender

Scheduled Pinned Locked Moved ASP.NET
helptoolsquestion
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ratchman
    wrote on last edited by
    #1

    I wonder if any of you could help me on this. I am new to using AJAX, so do please explain as simply as possible. I have a ModalPopUpExtender which, for some reason, will not bring up the pop up as expected. I did suspect that the script manager was not being inherited from the master page, but the RoundedCornersExtender seems to work as expected, so that would rule that issue out. I know the number of properties of the extender is a little basic at the moment, but I just want to get the div to appear as a pop up before I start assigning the buttons or formatting the background. The code is as follows:

    And the code behind for the 'onclick' is: protected void btnIntroductionText_Click(object sender, EventArgs e) { divProphetAndLoss1.Visible = true; } Should the div be inside a panel for it to work, or can it work just within the div itself?

    J J 2 Replies Last reply
    0
    • R Ratchman

      I wonder if any of you could help me on this. I am new to using AJAX, so do please explain as simply as possible. I have a ModalPopUpExtender which, for some reason, will not bring up the pop up as expected. I did suspect that the script manager was not being inherited from the master page, but the RoundedCornersExtender seems to work as expected, so that would rule that issue out. I know the number of properties of the extender is a little basic at the moment, but I just want to get the div to appear as a pop up before I start assigning the buttons or formatting the background. The code is as follows:

      And the code behind for the 'onclick' is: protected void btnIntroductionText_Click(object sender, EventArgs e) { divProphetAndLoss1.Visible = true; } Should the div be inside a panel for it to work, or can it work just within the div itself?

      J Offline
      J Offline
      Joshua Omundson
      wrote on last edited by
      #2

      I don't think you need the btnIntroductionText_Click event since the Popup Extender is already taking care of it when you set the TargetControlID.

      1 Reply Last reply
      0
      • R Ratchman

        I wonder if any of you could help me on this. I am new to using AJAX, so do please explain as simply as possible. I have a ModalPopUpExtender which, for some reason, will not bring up the pop up as expected. I did suspect that the script manager was not being inherited from the master page, but the RoundedCornersExtender seems to work as expected, so that would rule that issue out. I know the number of properties of the extender is a little basic at the moment, but I just want to get the div to appear as a pop up before I start assigning the buttons or formatting the background. The code is as follows:

        And the code behind for the 'onclick' is: protected void btnIntroductionText_Click(object sender, EventArgs e) { divProphetAndLoss1.Visible = true; } Should the div be inside a panel for it to work, or can it work just within the div itself?

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        Check your PopUpTitle CSS, sometimes the AJAX fired and worked, but the proper css was not available, to alter. In other words, the modelopopupextender just makes a change to the css, which makes it pop up, and then changes the css back to the original parameters to hide the popup. So change your css to show the popup, and change the css back to hide the popup, before implementing the popup extender. If the popup extender still doesn't work after that, then your missing a extender property, which should trigger an error. I didn't see the close button target id.

        Test your css class for show and hide by altering the css

        This should be show or hide

        protected void btnIntroductionText_Click(object sender, EventArgs e)
        {
        MPEProphetAndLoss1.Show(); // Show or Hide
        }

        }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups