AJAX ModalPopUpExtender
-
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?
-
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?
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.
-
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?
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
}}