Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 28, 2007 04:09 PM by jfayling
Jan 17, 2007 05:14 PM|LINK
I am using the latest RC1 version of the ASP.NET AJAX and the latest version of the Control Toolkit. I have a ModalPopup that contains an UpdatePanel which contains some buttons and some drop down lists. I need this window to act like a little wizard,
posting back as the users click the drop downs etc - your basic multi-step process. Once the user process is completed, clicking on a complete button in the ModalPopup will end the process and close the ModalPopup window using the .Hide() method. The first
issue I had to work through was that the ModalPopup would close during the postback but I solved this by issuing a .Show() in the Postback button click event handler (throwing that in just in case in makes a difference). Now the issue I have is that in Firefox,
if the postbacks happen, and I close the window programatically or otherwise, the ModalPopup disappears like expected, but the window remains modal, meaning that the elements on the page cannot be clicked, almost as if the browser is frozen. This is working
fine in IE7, it's only in firefox where I get this issue.
Any help on this issue would be greatly appreciated as the this is a show stopper for the client.
Here is the little ModalPopup panel
<asp:Panel ID="pnlBuyBox" runat="server" CssClass="buyBox" Style="display: none;">
<asp:UpdatePanel runat="server" ID="pnlUpdateBuyBox">
<asp:Label runat="server" ID="lblPFName"></asp:Label>
<asp:Label runat="server" ID="lblEntryID"></asp:Label>
<asp:Repeater runat="server" ID="rptChoices">
<asp:DropDownList runat="server" ID="ddlChoices">
<asp:ListItem Text="choice1" Value="choice1"></asp:ListItem>
<asp:ListItem Text="choice2" Value="choice2"></asp:ListItem>
<asp:ListItem Text="choice3" Value="choice3"></asp:ListItem>
<asp:ListItem Text="choice4" Value="choice4"></asp:ListItem>
<asp:Button runat="server" ID="btnTest" Text="Can I Post Back" OnClick="btnTest_Click"></asp:Button><br />
<asp:Button runat="server" ID="btnDone" Text="Can I Quit this" OnClick="btnDone_Click"></asp:Button><br />
<asp:Button runat="server" ID="btnOK" Text="OK" />
<asp:Button runat="server" ID="btnCancel" Text="Cancel" />
the ModalPopup Control
<ajaxToolkit:ModalPopupExtender ID="mpeBuyBox" runat="server"
Some of the Event Handling Code Stubs
Sub btnTest_Click(ByVal sender As Object, ByVal e As EventArgs)
lblEntryID.Text = "I Changed this " & DateTime.Now.ToString()
Sub btnDone_Click(ByVal sender As Object, ByVal e As EventArgs)
Toolkit ModalPopup Firefox issue
Jan 18, 2007 11:29 PM|LINK
Feb 25, 2007 10:58 PM|LINK
I'm having the same issue... IE7 works fine but the new firefox does not...
Feb 25, 2007 11:10 PM|LINK
Feb 26, 2007 12:47 AM|LINK
It's good when it works...
Being a realitivly new library things are going to break.
It's up to you, go with a safe(er) solution -or- grin and bear it when things don't work (because they will break). You have multiple browsers and none of them work exactly the same way. When browsers versions change (like with firefox) any certenty of
reliability is non existent. Now, this is not to say in the future it will not be made to function browser xyz, but in the here and now, while you are waiting for the new AjaxToolkit.dll, you WILL catch hell from your boss/client because your solution does
not appear to work. They will not care about the reason why, just that they want what the paied for, a working solution.
Feb 26, 2007 01:37 AM|LINK
I completely agree with you Matthew, All software has bugs.. this is a given..
This is the beauty of open source software.. If there is a critical bug that breaks my app. I have the code to fix it myself.
However I was concerned with the previous post of:
"I'm guessing from the 0 replies that cross browser support isn't an overwhelming concern with this product."
And the fact that this was not given a reply.
If the development team do not even intend for the Library to work on anything but IE.. then I would have to stop using it immediately. Which I do not wish todo as it seems like an excellent toolkit.
However if cross browser support is a one of the objectives of the project (which I has assumed as a given until I read this post) confirmation of this, and which browsers it is intended to work with would be nice.
Feb 26, 2007 02:06 AM|LINK
It is suppose to be cross browser.
Currently "Atlas" is planning to support IE, Firefox, and Safari.
From the FAQ, http://forums.asp.net/thread/1293293.aspx
Feb 26, 2007 02:08 AM|LINK
If there's anyone reading this thread who's actually still having trouble with a ModalPopup, an UpdatePanel, and Firefox, could you please post your code so I can check it out?
I tried the code at the top of this thread (filling in the missing pieces like a data source, an onOK function, and the buyBox style), and I didn't have any trouble in IE7 or Firefox 188.8.131.52.
Feb 26, 2007 03:12 AM|LINK
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="ModalUpdate" runat="server" UpdateMode="Always">
<asp:Button ID="ModalButton" runat="server" Text="Click Me" OnClick="ModalButton_Click" />
<asp:LinkButton id="FakeControl" runat="server"/>
<asp:Panel ID="ModalPanel" runat="server" height="100px" Width="200px" style="display: none">
<div style="text-align: center">Modal Test Panel</div>
<asp:LinkButton ID="ModalClose" runat="server" Text="Close Window"/>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" CancelControlID="ModalClose" PopupControlID="ModalPanel" TargetControlID="FakeControl" runat="server"/>
If you take out the update panel it works in FF as well.
Here is the code behind
protected void ModalButton_Click(object sender, EventArgs e)
Feb 26, 2007 05:21 AM|LINK
Between my previous post and looking at the code Matthew just posted, I upgraded to Firefox 184.108.40.206 (I was on 220.127.116.11), and now neither code sample (the original poster's or Matthew's) work correctly.
Matthew, are you on 18.104.22.168 also?