Wednesday, March 28, 2012

Modal popup dont work

Hi,

I update to new version of toolkit but my 2 modal popup on my application don't work correctly.

The modal popups work correctly after first page load...but if I first click on another button or do another operation on my page and next I try to open the modal popup it don't appear.

Why?

Thanks for help.

Can you show some code of the code opening Modal dialogs? This is a weird behavior!

Regards


Ok.

This is the extender:

 <cc1:ModalPopupExtender ID="MPE1" runat="server" TargetControlID="filterBtn" CancelControlID="CancelButton" OkControlID="OkButton2" DropShadow="true" BackgroundCssClass="modalBackground" PopupControlID="filtroPanel" > </cc1:ModalPopupExtender>

the modal popup is opened when I click on "filterBtn" button


and this is the panel:

1<asp:Panel ID="filtroPanel" runat="server" CssClass="modalPopup" HorizontalAlign="Center"2 Style="display: none">3 <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional" >4 <Triggers>5 <asp:AsyncPostbackTrigger ControlID="divisioneDdl" EventName="SelectedIndexChanged" />6 <asp:AsyncPostbackTrigger ControlID="classeDdl" EventName="SelectedIndexChanged" />7 <asp:AsyncPostbackTrigger ControlID="famigliaDdl" EventName="SelectedIndexChanged" />8 <asp:AsyncPostbackTrigger ControlID="ClearFilterBtn" EventName="Click" />9 <asp:AsyncPostbackTrigger ControlID="filterBtn" EventName="Click" />10 </Triggers>11 <ContentTemplate>12 <table>13 <tr>14 <td style="width: 100px; text-align: right">15 Tipo Erbario</td>16 <td style="width: 100px; text-align: left">17 <asp:DropDownList ID="ErbarioDdl" runat="server" Width="150px">18 <asp:ListItem Selected="True">Tutti</asp:ListItem>19 </asp:DropDownList></td>20 </tr>21 <tr>22 <td style="width: 100px; text-align: right">23 Divisione</td>24 <td style="width: 100px; text-align: left">25 <asp:DropDownList ID="divisioneDdl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="divisioneDdl_SelectedIndexChanged"26 Width="150px">27 <asp:ListItem Selected="True">Tutti</asp:ListItem>28 </asp:DropDownList></td>29 </tr>30 <tr>31 <td style="width: 100px; text-align: right">32 Classe</td>33 <td style="width: 100px; text-align: left">34 <asp:DropDownList ID="classeDdl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="classeDdl_SelectedIndexChanged"35 Width="150px">36 <asp:ListItem Selected="True">Tutti</asp:ListItem>37 </asp:DropDownList></td>38 </tr>39 <tr>40 <td style="width: 100px; text-align: right">41 Famiglia</td>42 <td style="width: 100px; text-align: left">43 <asp:DropDownList ID="famigliaDdl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="famigliaDdl_SelectedIndexChanged"44 Width="150px">45 <asp:ListItem Selected="True">Tutti</asp:ListItem>46 </asp:DropDownList></td>47 </tr>48 <tr>49 <td style="width: 100px; text-align: right">50 Genere</td>51 <td style="width: 100px; text-align: left">52 <asp:DropDownList ID="genereDdl" runat="server" AutoPostBack="True" Width="150px">53 <asp:ListItem Selected="True">Tutti</asp:ListItem>54 </asp:DropDownList></td>55 </tr>56 </table>57 <br />58 <asp:Button ID="OkButton" runat="server" OnClick="OkButton_Click" OnClientClick="clickbtn()"59 Text="OK" />60    61 <asp:Button ID="CancelButton" runat="server" Text="Cancel" OnClientClick="clickbtn()" />6263 </ContentTemplate>646566 </asp:UpdatePanel>676869 <asp:Button ID="OkButton2" runat="server" Style="visibility: hidden"/>70 </asp:Panel>

OkButton2 is a button that is clicked by a javascript function, to close the popup.

In the page there are some update panel.


Anyone?

Help meCrying


I'm having the same issue with HoverMenuExtender and PopupControlExtender.
This sounds a lot likehttp://forums.asp.net/thread/1441672.aspx - try upgrading to Beta 2/61121.

No comments:

Post a Comment