BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

Last post 10-30-2006 7:19 AM by ziwar. 16 replies.

Sort Posts:

  • BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    09-18-2006, 7:20 AM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985

    Suggestion:

     

    Removing the requirements for having a OK and Cancel button for the ModalPopUp.  Whilst one can mark them not visible, it makes the UI code gludgy.   When dynamically loading controls - I at least - ignore using those buttons as my composite control handles the ShowModal routines and personally - while I have not used it - I assume the PopUp control is more for static requiring someway to dismiss it, but the Modal I think of as more for popping up forms.

     

    Friday's Build: Sept 15

    Bug:  I have noted that you can not have two same named controls if using the ModalPopUp. In other words, if your main control has a <asp:button id="btnAdd"...>  in the ascx then the control being loaded dynamically in the placeholder of the Modal can not have a <asp:button id="btnAdd"...>. Doing so will cause assertion failures. So, in the example code there is no duplicate naming of either parameters in the C# code or the .ascx .

     

    Bug: Using Update Panels or Not - The ModalPopUp (I haven't used any other controls) hides System Exception errors at times.  In other words a real exception that should bring up a error message or caught by a global exception tracker - is not occuring.  Somehow it is being surpressed on the server side.  Manual catches {try..catch exception e} will work.... but that is a hassle as if you have no idea where you need to look. 

     

    Bug: Popping up a ModalPopUp within its own UpdatePanel causes other update panels to loose DropDownLists (Controls dissapear)

    Scenario: A group of DropDownLists and below a GridView within a <UpdatePanel id="up1">  Partial rendering is enabled, Update setting:

    Mode="Conditional" RenderMode="Inline"

    A ModalPopUp inside its own <UpdatePane id = "up2" >

    Mode="Conditional" RenderMode="Block"

    When modal is shown() in  <UpdatePane id = "up2" > the dropdown lists in <UpdatePanel id="up1"> dissapear completely but gridview still remains.  Takes page refresh to re-init. Buttons inside  <UpdatePanel id="up1">  also remain only the drowdown lists dissapear.

     

     

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: Suggestion and Bug

    09-20-2006, 5:56 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    It sounds like you've got some great issues here, but I'm afriad I'm not always able to understand things without having an example to play around with and see for myself. Could you please provide a simple, self-contained sample demonstrating the relevant issues? That'll help us understand the problem and we'll both be on the same page as we discuss possible solutions/workarounds. Thanks!

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-03-2006, 2:51 PM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985

    Duplicated issue - with:

    Bug: Popping up a ModalPopUp within its own UpdatePanel causes other update panels to loose DropDownLists (Controls dissapear)

    Scenario: A group of DropDownLists and below a GridView within a <UpdatePanel id="up1">  Partial rendering is enabled, Update setting:

    Using the default ModalPopUp.aspx and cs files for the example site...

    Gridview must be on the page and wrapped in a update panel:

    Modal must have its own asp:buttons that do something....

    What appears to happen when you have asp buttons that perform postbacks - say you have code behind to do the show() hide() routines....  as soon as the buttons are clicked the dropdownlists are never regenerated (by default and I assume when the modal greys everything out since the dropdownlists are selectable - they are hidden until modal popup is closed)...  However, buttons in the ModalForm once clicked the dropdown controls are never made visible again.  Again this ONLY happens with a Gridview control on the page.....

    Simply replace the the modalpopup.aspx with the following (the cs remains same as issue is not code-behind.  Even setting the visibility in Page_Load events doesn't effect the results...

     

    code below:

     

     

    <%@ Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="ModalPopup.aspx.cs" Inherits="ModalPopup_ModalPopup" Title="ModalPopup Sample" %>

    <%@ Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="atlasToolkit" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

        <atlas:ScriptManager id="ScriptManager" runat="server" EnablePartialRendering="true"></atlas:ScriptManager>

        <div class="demoarea">
        <div class="demoheading">ModalPopup Demonstration</div>
        <p id="Paragraph1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
        incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
        exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
        irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
        pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
        deserunt mollit anim id est laborum.</p>
        <br />
        <asp:LinkButton ID="LinkButton1" runat="server" Text="Click here to change the paragraph style"></asp:LinkButton>

        <script type="text/javascript">
        var styleToSelect;
        function onOk() {
            $('Paragraph1').className = styleToSelect;
        }
        </script>
        </br>
    <atlas:UpdatePanel ID="UpdatePanel1" Mode="Conditional" RenderMode="Inline" runat="server" >
     <ContentTemplate>
     <table width="100%">
       <tr><td><asp:Button ID="btnCheckAll" Text="Select All" runat="server" /></td><td><asp:Button ID="btnUnCheckAll" Text= "Unselect All" runat="server" /></td>
       
       <td>
        Sort By:
        <asp:DropDownList id="dropSortBy" AutoPostBack="True" Runat="Server" >
         <asp:ListItem Text="Named Page ID" Value="0" />
         <asp:ListItem Text="Grouping" Value="2" />
         <asp:ListItem Text="Community" Value="3" />
         
        </asp:DropDownList>
       </td>

       <td>
        Order By:
        <asp:DropDownList id="dropOrderBy" AutoPostBack="True" Runat="Server" >
         <asp:ListItem Text="Descending" value="0" />
         <asp:ListItem Text="Ascending" value="1" />
         
        </asp:DropDownList>
       </td>
      </tr>
     </table>
    <asp:GridView BackColor="Azure" GridLines="None" ShowHeader="False" Width="100%" ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ItemID"
            DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:TemplateField>
                    <EditItemTemplate> 
                        <asp:Panel ID="Panel7" runat="server" CssClass="popupMenu" Width="80">
                        <div style='border:1px outset white'>
                        &nbsp;<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" Text="Update"></asp:LinkButton>&nbsp;
                        <br />
                        &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"></asp:LinkButton>&nbsp;
                        </div>
                        </asp:Panel>

                        <asp:Panel ID="Panel8" runat="server" Width="80%">
                        <table width="100%">
                        <tr>
                            <td width="30%">Title:<br /><asp:TextBox Font-Bold="true" ID="TextBox1" runat="server" Text='<%# Bind("Title") %>' Width="100"></asp:TextBox></td>
                            <td width="55%">Desc:<br /><asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Description") %>' Width="150"></asp:TextBox></td>
                            <td width="15%">Pri:<br /><asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Priority") %>' Width="40"></asp:TextBox></td>
                        </tr>
                        </table>
                        </asp:Panel>

                        <atlasToolkit:HoverMenuExtender ID="hme1" runat="Server">
                            <atlasToolkit:HoverMenuProperties TargetControlID="Panel8" PopupControlID="Panel7" HoverCssClass="popupHover" PopupPosition="Right" />
                        </atlasToolkit:HoverMenuExtender>

                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Panel CssClass="popupMenu" ID="PopupMenu" runat="server">
                        <div style='border:1px outset white'>
                        &nbsp;<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit" Text="Edit"></asp:LinkButton>&nbsp;
                        <br />
                        &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CommandName="Delete" Text="Delete"></asp:LinkButton>&nbsp;
                        </div>
                        </asp:Panel>

                        <asp:Panel ID="Panel9" runat="server">
                        <table width="100%">
                        <tr>
                            <td width="25%"><asp:Label Font-Bold="true" ID="Label1" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("Title"))) %>'></asp:Label></td>
                            <td width="50%"><asp:Label ID="Label2" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("Description"))) %>'></asp:Label></td>
                            <td width="25%"><asp:Label ID="Label3" runat="server" Text='<%# Eval("Priority") %>'></asp:Label></td>
                        </tr>
                        </table>
                        </asp:Panel>

                        <atlasToolkit:HoverMenuExtender ID="hme2" runat="Server">
                            <atlasToolkit:HoverMenuProperties HoverCssClass="popupHover" PopupControlID="PopupMenu" PopupPosition="Left" TargetControlID="Panel9" PopDelay="25"/>
                        </atlasToolkit:HoverMenuExtender>
                    </ItemTemplate>
                </asp:TemplateField>
               
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="Select"
            TypeName="SessionTodoXmlDataObject" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_ItemID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="Title" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Priority" Type="Int32" />
                <asp:Parameter Name="Original_ItemID" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="Title" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Priority" Type="Int32" />
            </InsertParameters>
        </asp:ObjectDataSource>
     
     
          </ContentTemplate>
        </atlas:UpdatePanel> 
       
       
        <atlas:UpdatePanel ID="UpdatePanelModal" Mode="Conditional" RenderMode="Inline" runat="server" >
     <ContentTemplate>

        <asp:Panel ID="Panel1"  runat="server" BackColor="Azure" CssClass="modalPopup"
                      Height="400px" ScrollBars="Vertical" Style='display: none' Width='600px'>
            <p>Choose the pagagraph style you would like:</p>       
            <p ><input type="radio" name="Radio" id="RadioA" onclick="styleToSelect = 'sampleStyleA';" checked="true" /><label for="RadioA" class="sampleStyleA" style='padding:3px;'>Sample paragraph text</label></p>
            <p ><input type="radio" name="Radio" id="RadioB" onclick="styleToSelect = 'sampleStyleB';" /><label for="RadioB" class="sampleStyleB" style='padding:3px;'>Sample paragraph text</label></p>
            <p ><input type="radio" name="Radio" id="RadioC" onclick="styleToSelect = 'sampleStyleC';" /><label for="RadioC" class="sampleStyleC" style='padding:3px;'>Sample paragraph text</label></p>
            <p ><input type="radio" name="Radio" id="RadioD" onclick="styleToSelect = 'sampleStyleD';" /><label for="RadioD" class="sampleStyleD" style='padding:3px;'>Sample paragraph text</label></p>
            <p style='text-align:center;'>
          <h3>Edit Named Page</h3>
     <asp:Panel ID="pnlForm" runat="server" >
    <div class="pageDescription" style='WIDTH:500px'>
     WARNING: Editing this entry may disrupt your website. Use extreme caution when
     changing any entry on the form. You should also test the change by opening a
     new browser window and navigating your site.
    </div>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    <asp:Label ID="lblShowMode" text="blah" runat="server" />
    <asp:CheckBox ID="chkConfirmAction" runat="server" />
                   
                    <table>
                     <tr>
                    <td valign="top" style='width: 363px;'>
                        <strong>Module Type:</strong>
                        <p>
                        </p>
                        This determines which module this Named Page entry belongs to.&nbsp; To have the Named Page
                        available to all configured modules use "Sections" as your choice...&nbsp;
                    </td>
                    </tr>
                    <tr>
               </table>
     
     <table>
          
      <TBODY>
       <TR>
        <td style='width: 363px;'>
         <strong>Title:</strong><p></p>
         This is the title of the Named Page. Example: Add Link
        </td>
        <td>
         <asp:TextBox id="txtTitle" Runat="server" Width="336px" /> <asp:RequiredFieldValidator ID="valTitle" runat="server"
                            ErrorMessage="* Title Required" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Description:</strong><p></p>
         <P>You should provide a full description of the module.
         </P>
         <P>Example: Enables users to add a Link</P>
        </td>
        <td valign="top">
         <asp:TextBox id="txtDescription" TextMode="MultiLine" Columns="40" Rows="3" Runat="server"  />
          </td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Path:</strong>
         <P>
         </P>
         <P>
          Example: /Links_AddLink.aspx</P>
        </td>
        <td valign="top">
         <asp:TextBox id="txtPath" Rows="1" Runat="server" Width="376px"  />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPath"
                            ErrorMessage="* Path Required"></asp:RequiredFieldValidator>
          </td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Name: </strong>
         <p>
          Example: AddLink
         </p>
        </td>
        <td valign="top">
         <asp:TextBox id="txtName" runat="server" Text="(required)"
          TextAlign="Right" Width="256px"  />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                            ErrorMessage="* Name Required"></asp:RequiredFieldValidator></td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Visibility:</strong><p></p>
         You can disable this menu option from being seen if you like.
        </td>
        <td valign="top">
         <asp:CheckBox id="checkIsVisible" runat="server"  Text="(check to enable)" />
        </td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <P>
          <strong>Page Content:</strong>
         </P>
         <P>Example: ASPNET.StarterKit.Communities.Links.AddLink</P>
        </td>
        <td valign="top">
         <asp:TextBox id="txtPageContent" Rows="1" Runat="server" Width="408px" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPageContent"
                            ErrorMessage="* Page Content Required"></asp:RequiredFieldValidator>
        </td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Grouping:</strong>
         <p>
         </p>
         For use in sorting only, plays no role in Named Page content in terms of the
         CSK.&nbsp;
        </td>
        <td valign="top">
         <asp:DropDownList id="dropGP"  Runat="server"></asp:DropDownList></td>
       </TR>
              
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Communities:</strong><p></p>
         When checked (default) assigns named page to all communities.
        </td>
        <td valign="top">
         <asp:CheckBox id="checkAllCommunities" runat="server"  Text="(check to enable)" />
        </td>
       </TR>
       <tr>
        <td colspan="2">
        
         <asp:Button ID="btnAdd" runat="server" CausesValidation="True" Text="Submit Changes"
                            UseSubmitBehavior="true" />
         <asp:Button id="btnClone" UseSubmitBehavior="false"  Text="Submit & Clone" Runat="server"  />
         <asp:Button ID="btnDelete" UseSubmitBehavior="false"  Text="Delete Entry" runat="server" />
         <asp:Button id="btnCancel" UseSubmitBehavior="false"  Text="Cancel" CausesValidation="false" Runat="server"  />
        </td>
       </tr>
      </TBODY>
     </table>
                   </asp:Panel>
            <asp:Button ID="OkButton" runat="server" Text="OK"></asp:Button>
            <asp:Button ID="CancelButton" runat="server" Text="Cancel"></asp:Button>
            </p>
        </asp:Panel>

        <atlasToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server">
            <atlasToolkit:ModalPopupProperties TargetControlID="LinkButton1" PopupControlID="Panel1" BackgroundCssClass="modalBackground" DropShadow="true" OkControlID="OkButton" OnOkScript="onOk()" CancelControlID="CancelButton" />
        </atlasToolkit:ModalPopupExtender>
    </ContentTemplate>
        </atlas:UpdatePanel> 
        </div>
             
        <div class="demobottom"></div>

        <asp:Panel ID="Description_HeaderPanel" runat="server" style='cursor: pointer;'>
            <div class="heading">
                <asp:Image ID="Description_ToggleImage" runat="server" ImageUrl="~/images/collapse.jpg" /> ModalPopup Description
            </div>
        </asp:Panel>
        <asp:Panel id="Description_ContentPanel" runat="server" style='overflow:hidden;'>

                <p>
                The ModalPopup extender allows a page to display content to the user in a "modal" manner which prevents the user from interacting with the rest of the page.
                The modal content can be any hierarchy of controls and is displayed above a background that can have a custom style applied to it.
                When displayed, only the modal content can be interacted with; clicking on the rest of the page does nothing.
                When the user is done interacting with the modal content, a click of an OK/Cancel control dismisses the modal content and optionally runs custom script.
                The custom script will typically be used to apply whatever changes were made while the modal mode was active.
                If a postback is required, simply allow the OK/Cancel control to postback and the page to re-render.
                </p>
           
        </asp:Panel>

        <asp:Panel ID="Properties_HeaderPanel" runat="server" style='cursor: pointer;'>
            <div class="heading">
                <asp:Image ID="Properties_ToggleImage" runat="server" ImageUrl="~/images/collapse.jpg" /> ModalPopup Properties
            </div>
        </asp:Panel>
        <asp:Panel id="Properties_ContentPanel" runat="server" style='overflow:hidden;' Height='0px'>

                <p>The control above is initialized with this code. The <em>italic</em> properties are optional:</p>
                <pre>
    &lt;atlasToolkit:ModalPopupExtender ID="MPE" runat="server"&gt;
        &lt;atlasToolkit:ModalPopupProperties
            TargetControlID="LinkButton1"
            PopupControlID="Panel1"
            <em>BackgroundCssClass="modalBackground"
            DropShadow="true"
            OkControlID="OkButton"
            OnOkScript="onOk()"
            CancelControlID="CancelButton"</em>/&gt;
    &lt;/atlasToolkit:ModalPopupExtender&gt;
                </pre>
                <ul>
                    <li><strong>TargetControlID</strong> - The ID of the element that activates the modal popup</li>
                    <li><strong>PopupControlID</strong> - The ID of the element to display as a modal popup</li>
                    <li><strong>BackgroundCssClass</strong> - The CSS class to apply to the background when the modal popup is displayed</li>
                    <li><strong>DropShadow</strong> - True to automatically add a drop-shadow to the modal popup</li>
                    <li><strong>OkControlID</strong> - The ID of the element that dismisses the modal popup</li>
                    <li><strong>OnOkScript</strong> - Script to run when the modal popup is dismissed with the OkControlID</li>
                    <li><strong>OkCancelID</strong> - The ID of the element that cancels the modal popup</li>
                    <li><strong>OkCancelScript</strong> - Script to run when the modal popup is dismissed with the CancelControlID</li>
                </ul>
           
        </asp:Panel>

        <atlasToolkit:CollapsiblePanelExtender ID="demoCpe" runat="Server">
            <atlasToolkit:CollapsiblePanelProperties
                TargetControlID="Description_ContentPanel"
                ExpandControlID="Description_HeaderPanel"
                CollapseControlID="Description_HeaderPanel"
                Collapsed="False"       
                ExpandDirection="Vertical"
                ImageControlID="Description_ToggleImage"
                ExpandedImage="~/images/collapse.jpg"
                ExpandedText="Collapse"
                CollapsedImage="~/images/expand.jpg"
                CollapsedText="Expand"
                SuppressPostBack="true" />
            <atlasToolkit:CollapsiblePanelProperties
                TargetControlID="Properties_ContentPanel"
                ExpandControlID="Properties_HeaderPanel"
                CollapseControlID="Properties_HeaderPanel"
                Collapsed="True"       
                ExpandDirection="Vertical"
                ImageControlID="Properties_ToggleImage"
                ExpandedImage="~/images/collapse.jpg"
                ExpandedText="Collapse"
                CollapsedImage="~/images/expand.jpg"
                CollapsedText="Expand"
                SuppressPostBack="true" />
        </atlasToolkit:CollapsiblePanelExtender>

    </asp:Content>

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-03-2006, 3:05 PM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985
    Note: Above occurs in IE 6 and not in latest FireFox...
    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-03-2006, 6:49 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    I think this might be work item 3573, though I don't have access to a machine with IE6 at the moment. If so, then the thinking is that the fix is to add a call to ModalPopup's restoreTab function when the page submits (look at how TextBoxWatermark uses Page.ClientScript.RegisterOnSubmitStatement to do this). What we think may be happening now is that ModalPopup disables the drop-downs in its show function to work around the IE bug and then the page submits out from under it and the hide function never gets a chance to re-enable them. If you're in a position to make this tweak and let us know if it helps, that would be great!!

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-03-2006, 7:20 PM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985

    In work Item : 3573 they state: You have a MPE and an UpdatePanel behind of it which contains a DropDownList. When the MPE is opened and you cause the UpdatePanel to refresh, the DropDownList(s) will be shown on top of the MPE (IE BUG).

    In the scenario I posted - I do not have the dropdown lists popping above the MPE. 

    And so I will clarify - this ONLY happens (as far as me testing - and used the atlas toolkit sample site to try to reproduce as seen by code above as I was trying to determine why this was occuring ands had initially thought it was becuase I was not rebuilding the server side component properly in my dynamic loaded custom controls)- when a GRIDVIEW is in the update panel with ddls.  Otherwise I could have the ddl dissapear and reappear without incident when either there is no databpund in the gridview or no gridview at all.  There is something funky going on when a gridview is databound (when there is no data binded then it can popup modal and ddls reappear when closed...).... So, I believe this is two seperate issues....perhaps they are related but I doubt it...

     In ref to the "fix is to add a call to ModalPopup's restoreTab function " is this an exposed method that can be accessed from code behind like the show() hide()?   if  what you are referring to is  modifying the toolkit - or something - I simply am not that experienced to do so - as I checked the TextWaterMark examples and there is no reference to Page.ClientScript.RegisterOnSubmitStatement anywhere in that particular sample...   if you can provide me some code or an actual example otherwise - I really am not that into the coding aspect of the toolkit (I simply hate programming javascript and try to stay away from scripting anyway possible).....as my only focus with the toolkit is to use it to enhance the project I am working on...I did my best to spend time to re-code the toolkit example to enable you guys to reproduce and see the issue....and hopefully the additional notes here will help...

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-04-2006, 4:39 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842

    Okay, thanks for the details. To make sure I'm understanding properly, I think that the following changes will make things work more as you'd like. Please let me know if this is progress or not.

    Add as the last two lines (before the closing '}') of this.initialize in ModalPopupBehavior.js:
            this.registerPartialUpdateEvents();
            this.partialRenderingBegin.add(Function.createDelegate(this, this._onPartialRenderingBegin));

    Add immediately following this.initialize (and immediately before this.dispose) in ModalPopupBehavior.js:
        this._onPartialRenderingBegin = function(sender, eventArgs) {
            this.restoreTab();
        }

    Those two changes call the restoreTab function as part of the UpdatePanel submit like I was suggesting may be necessary.

    Also, here's a new version of the ASP.NET code you pasted above. I made a few minor changes to fix some things that weren't ideas. Specifically, I moved the UpdatePanel inside the PopupControlID so it wouldn't stomp the attached DOM element event handlers. I moved the OkControlID and CancelControlID outside the UpdatePanel for similar reasons. And I added OnClientClick handlers to the submit buttons in order to close the ModalPopup when one of them was clicked.

    Please give this a try and let us know how it works for you. 

    <%@ Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="ModalPopup.aspx.cs" Inherits="ModalPopup_ModalPopup" Title="ModalPopup Sample" %>
    
    <%@ Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="atlasToolkit" %>
    
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
        <atlas:ScriptManager id="ScriptManager" runat="server" EnablePartialRendering="true"></atlas:ScriptManager>
    
        <div class="demoarea">
        <div class="demoheading">ModalPopup Demonstration</div>
        <p id="Paragraph1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
        incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
        exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
        irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
        pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
        deserunt mollit anim id est laborum.</p>
        <br />
        <asp:LinkButton ID="LinkButton1" runat="server" Text="Click here to change the paragraph style"></asp:LinkButton>
    
        <script type="text/javascript">
        var styleToSelect;
        function onOk() {
            $('Paragraph1').className = styleToSelect;
        }
        </script>
        </br>
    <atlas:UpdatePanel ID="UpdatePanel1" Mode="Conditional" RenderMode="Inline" runat="server" >
     <ContentTemplate>
     <table width="100%">
       <tr><td><asp:Button ID="btnCheckAll" Text="Select All" runat="server" /></td><td><asp:Button ID="btnUnCheckAll" Text="Unselect All" runat="server" /></td>
       
       <td>
        Sort By:
        <asp:DropDownList id="dropSortBy" AutoPostBack="True" Runat="Server" >
         <asp:ListItem Text="Named Page ID" Value="0" />
         <asp:ListItem Text="Grouping" Value="2" />
         <asp:ListItem Text="Community" Value="3" />
         
        </asp:DropDownList>
       </td>
    
       <td>
        Order By:
        <asp:DropDownList id="dropOrderBy" AutoPostBack="True" Runat="Server" >
         <asp:ListItem Text="Descending" value="0" />
         <asp:ListItem Text="Ascending" value="1" />
         
        </asp:DropDownList>
       </td>
      </tr>
     </table>
    <asp:GridView BackColor="Azure" GridLines="None" ShowHeader="False" Width="100%" ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ItemID" 
            DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:TemplateField>
                    <EditItemTemplate>  
                        <asp:Panel ID="Panel7" runat="server" CssClass="popupMenu" Width="80">
                        <div style='border:1px outset white'>
                         <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" Text="Update"></asp:LinkButton> 
                        <br />
                         <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"></asp:LinkButton> 
                        </div>
                        </asp:Panel>
    
                        <asp:Panel ID="Panel8" runat="server" Width="80%">
                        <table width="100%">
                        <tr>
                            <td width="30%">Title:<br /><asp:TextBox Font-Bold="true" ID="TextBox1" runat="server" Text='<%# Bind("Title") %>' Width="100"></asp:TextBox></td>
                            <td width="55%">Desc:<br /><asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Description") %>' Width="150"></asp:TextBox></td>
                            <td width="15%">Pri:<br /><asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Priority") %>' Width="40"></asp:TextBox></td>
                        </tr>
                        </table>
                        </asp:Panel>
    
                        <atlasToolkit:HoverMenuExtender ID="hme1" runat="Server">
                            <atlasToolkit:HoverMenuProperties TargetControlID="Panel8" PopupControlID="Panel7" HoverCssClass="popupHover" PopupPosition="Right" />
                        </atlasToolkit:HoverMenuExtender>
    
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Panel CssClass="popupMenu" ID="PopupMenu" runat="server">
                        <div style='border:1px outset white'>
                         <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit" Text="Edit"></asp:LinkButton> 
                        <br />
                         <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Delete" Text="Delete"></asp:LinkButton> 
                        </div>
                        </asp:Panel>
    
                        <asp:Panel ID="Panel9" runat="server">
                        <table width="100%">
                        <tr>
                            <td width="25%"><asp:Label Font-Bold="true" ID="Label1" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("Title"))) %>'></asp:Label></td>
                            <td width="50%"><asp:Label ID="Label2" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("Description"))) %>'></asp:Label></td>
                            <td width="25%"><asp:Label ID="Label3" runat="server" Text='<%# Eval("Priority") %>'></asp:Label></td>
                        </tr>
                        </table>
                        </asp:Panel>
    
                        <atlasToolkit:HoverMenuExtender ID="hme2" runat="Server">
                            <atlasToolkit:HoverMenuProperties HoverCssClass="popupHover" PopupControlID="PopupMenu" PopupPosition="Left" TargetControlID="Panel9" PopDelay="25"/>
                        </atlasToolkit:HoverMenuExtender>
                    </ItemTemplate>
                </asp:TemplateField>
                
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="Select"
            TypeName="SessionTodoXmlDataObject" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_ItemID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="Title" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Priority" Type="Int32" />
                <asp:Parameter Name="Original_ItemID" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="Title" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Priority" Type="Int32" />
            </InsertParameters>
        </asp:ObjectDataSource>
      
      
          </ContentTemplate>
        </atlas:UpdatePanel>  
        
        
        <asp:Panel ID="Panel1"  runat="server" BackColor="Azure" CssClass="modalPopup"
                      Height="400px" ScrollBars="Vertical" Style='display: none' Width='600px'>
            <p>Choose the pagagraph style you would like:</p>        
            <p ><input type="radio" name="Radio" id="RadioA" onclick="styleToSelect = 'sampleStyleA';" checked="true" /><label for="RadioA" class="sampleStyleA" style='padding:3px;'>Sample paragraph text</label></p>
            <p ><input type="radio" name="Radio" id="RadioB" onclick="styleToSelect = 'sampleStyleB';" /><label for="RadioB" class="sampleStyleB" style='padding:3px;'>Sample paragraph text</label></p>
            <p ><input type="radio" name="Radio" id="RadioC" onclick="styleToSelect = 'sampleStyleC';" /><label for="RadioC" class="sampleStyleC" style='padding:3px;'>Sample paragraph text</label></p>
            <p ><input type="radio" name="Radio" id="RadioD" onclick="styleToSelect = 'sampleStyleD';" /><label for="RadioD" class="sampleStyleD" style='padding:3px;'>Sample paragraph text</label></p>
    
        <atlas:UpdatePanel ID="UpdatePanelModal" Mode="Conditional" RenderMode="Inline" runat="server" >
     <ContentTemplate>
    
            <p style='text-align:center;'>
          <h3>Edit Named Page</h3>
     <asp:Panel ID="pnlForm" runat="server" >
    <div class="pageDescription" style='WIDTH:500px'>
     WARNING: Editing this entry may disrupt your website. Use extreme caution when 
     changing any entry on the form. You should also test the change by opening a 
     new browser window and navigating your site.
    </div>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    <asp:Label ID="lblShowMode" text="blah" runat="server" />
    <asp:CheckBox ID="chkConfirmAction" runat="server" />
                    
                    <table>
                     <tr>
                    <td valign="top" style='width: 363px;'>
                        <strong>Module Type:</strong>
                        <p>
                        </p>
                        This determines which module this Named Page entry belongs to.  To have the Named Page
                        available to all configured modules use "Sections" as your choice... 
                    </td>
                    </tr>
                    <tr>
               </table>
     
     <table>
           
      <TBODY>
       <TR>
        <td style='width: 363px;'>
         <strong>Title:</strong><p></p>
         This is the title of the Named Page. Example: Add Link
        </td>
        <td>
         <asp:TextBox id="txtTitle" Runat="server" Width="336px" /> <asp:RequiredFieldValidator ID="valTitle" runat="server"
                            ErrorMessage="* Title Required" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Description:</strong><p></p>
         <P>You should provide a full description of the module.
         </P>
         <P>Example: Enables users to add a Link</P>
        </td>
        <td valign="top">
         <asp:TextBox id="txtDescription" TextMode="MultiLine" Columns="40" Rows="3" Runat="server"  />
          </td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Path:</strong>
         <P>
         </P>
         <P>
          Example: /Links_AddLink.aspx</P>
        </td>
        <td valign="top">
         <asp:TextBox id="txtPath" Rows="1" Runat="server" Width="376px"  />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPath"
                            ErrorMessage="* Path Required"></asp:RequiredFieldValidator>
          </td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Name: </strong>
         <p>
          Example: AddLink
         </p>
        </td>
        <td valign="top">
         <asp:TextBox id="txtName" runat="server" Text="(required)"
          TextAlign="Right" Width="256px"  />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                            ErrorMessage="* Name Required"></asp:RequiredFieldValidator></td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Visibility:</strong><p></p>
         You can disable this menu option from being seen if you like.
        </td>
        <td valign="top">
         <asp:CheckBox id="checkIsVisible" runat="server"  Text="(check to enable)" />
        </td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <P>
          <strong>Page Content:</strong>
         </P>
         <P>Example: ASPNET.StarterKit.Communities.Links.AddLink</P>
        </td>
        <td valign="top">
         <asp:TextBox id="txtPageContent" Rows="1" Runat="server" Width="408px" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPageContent"
                            ErrorMessage="* Page Content Required"></asp:RequiredFieldValidator>
        </td>
       </TR>
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Grouping:</strong>
         <p>
         </p>
         For use in sorting only, plays no role in Named Page content in terms of the 
         CSK. 
        </td>
        <td valign="top">
         <asp:DropDownList id="dropGP"  Runat="server"></asp:DropDownList></td>
       </TR>
               
       <TR>
        <td style='width: 363px;' valign='top'>
         <strong>Communities:</strong><p></p>
         When checked (default) assigns named page to all communities.
        </td>
        <td valign="top">
         <asp:CheckBox id="checkAllCommunities" runat="server"  Text="(check to enable)" />
        </td>
       </TR>
       <tr>
        <td colspan="2">
        
         <asp:Button ID="btnAdd" runat="server" CausesValidation="True" Text="Submit Changes"
                            UseSubmitBehavior="true" OnClientClick="$('ctl00_ContentPlaceHolder1_CancelButton').click();" />
         <asp:Button id="btnClone" UseSubmitBehavior="false"  Text="Submit & Clone" Runat="server" OnClientClick="$('ctl00_ContentPlaceHolder1_CancelButton').click();" />
         <asp:Button ID="btnDelete" UseSubmitBehavior="false"  Text="Delete Entry" runat="server" OnClientClick="$('ctl00_ContentPlaceHolder1_CancelButton').click();" />
         <asp:Button id="btnCancel" UseSubmitBehavior="false"  Text="Cancel" CausesValidation="false" Runat="server" OnClientClick="$('ctl00_ContentPlaceHolder1_CancelButton').click();" />
        </td>
       </tr>
      </TBODY>
     </table>
                   </asp:Panel>
            </p>
    </ContentTemplate>
        </atlas:UpdatePanel>  
            <asp:Button ID="OkButton" runat="server" Text="OK"></asp:Button>
            <asp:Button ID="CancelButton" runat="server" Text="Cancel"></asp:Button>
        </asp:Panel>
    
        <atlasToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server">
            <atlasToolkit:ModalPopupProperties TargetControlID="LinkButton1" PopupControlID="Panel1" BackgroundCssClass="modalBackground" DropShadow="true" OkControlID="OkButton" OnOkScript="onOk()" CancelControlID="CancelButton" />
        </atlasToolkit:ModalPopupExtender>
        </div>
              
        <div class="demobottom"></div>
    
        <asp:Panel ID="Description_HeaderPanel" runat="server" style='cursor: pointer;'>
            <div class="heading">
                <asp:Image ID="Description_ToggleImage" runat="server" ImageUrl="~/images/collapse.jpg" /> ModalPopup Description
            </div>
        </asp:Panel>
        <asp:Panel id="Description_ContentPanel" runat="server" style='overflow:hidden;'>
    
                <p>
                The ModalPopup extender allows a page to display content to the user in a "modal" manner which prevents the user from interacting with the rest of the page.
                The modal content can be any hierarchy of controls and is displayed above a background that can have a custom style applied to it.
                When displayed, only the modal content can be interacted with; clicking on the rest of the page does nothing.
                When the user is done interacting with the modal content, a click of an OK/Cancel control dismisses the modal content and optionally runs custom script.
                The custom script will typically be used to apply whatever changes were made while the modal mode was active.
                If a postback is required, simply allow the OK/Cancel control to postback and the page to re-render.
                </p>
            
        </asp:Panel>
    
        <asp:Panel ID="Properties_HeaderPanel" runat="server" style='cursor: pointer;'>
            <div class="heading">
                <asp:Image ID="Properties_ToggleImage" runat="server" ImageUrl="~/images/collapse.jpg" /> ModalPopup Properties
            </div>
        </asp:Panel>
        <asp:Panel id="Properties_ContentPanel" runat="server" style='overflow:hidden;' Height='0px'>
    
                <p>The control above is initialized with this code. The <em>italic</em> properties are optional:</p>
                <pre>
    <atlasToolkit:ModalPopupExtender ID="MPE" runat="server">
        <atlasToolkit:ModalPopupProperties
            TargetControlID="LinkButton1"
            PopupControlID="Panel1"
            <em>BackgroundCssClass="modalBackground"
            DropShadow="true"
            OkControlID="OkButton"
            OnOkScript="onOk()"
            CancelControlID="CancelButton"</em>/>
    </atlasToolkit:ModalPopupExtender>
                </pre>
                <ul>
                    <li><strong>TargetControlID</strong> - The ID of the element that activates the modal popup</li>
                    <li><strong>PopupControlID</strong> - The ID of the element to display as a modal popup</li>
                    <li><strong>BackgroundCssClass</strong> - The CSS class to apply to the background when the modal popup is displayed</li>
                    <li><strong>DropShadow</strong> - True to automatically add a drop-shadow to the modal popup</li>
                    <li><strong>OkControlID</strong> - The ID of the element that dismisses the modal popup</li>
                    <li><strong>OnOkScript</strong> - Script to run when the modal popup is dismissed with the OkControlID</li>
                    <li><strong>OkCancelID</strong> - The ID of the element that cancels the modal popup</li>
                    <li><strong>OkCancelScript</strong> - Script to run when the modal popup is dismissed with the CancelControlID</li>
                </ul>
            
        </asp:Panel>
    
        <atlasToolkit:CollapsiblePanelExtender ID="demoCpe" runat="Server">
            <atlasToolkit:CollapsiblePanelProperties
                TargetControlID="Description_ContentPanel"
                ExpandControlID="Description_HeaderPanel"
                CollapseControlID="Description_HeaderPanel"
                Collapsed="False"        
                ExpandDirection="Vertical"
                ImageControlID="Description_ToggleImage"
                ExpandedImage="~/images/collapse.jpg"
                ExpandedText="Collapse"
                CollapsedImage="~/images/expand.jpg"
                CollapsedText="Expand"
                SuppressPostBack="true" /> 
            <atlasToolkit:CollapsiblePanelProperties
                TargetControlID="Properties_ContentPanel"
                ExpandControlID="Properties_HeaderPanel"
                CollapseControlID="Properties_HeaderPanel"
                Collapsed="True"        
                ExpandDirection="Vertical"
                ImageControlID="Properties_ToggleImage"
                ExpandedImage="~/images/collapse.jpg"
                ExpandedText="Collapse"
                CollapsedImage="~/images/expand.jpg"
                CollapsedText="Expand"
                SuppressPostBack="true" /> 
        </atlasToolkit:CollapsiblePanelExtender>
    
    </asp:Content>
    
     

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-04-2006, 4:39 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842

    [Removing accidental duplicate post.]


    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: BUG: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-04-2006, 7:14 PM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985

    David - thanks for the response and code instructions...

     

    The fix you implied does work with one caveat - if you control the hide() show() from codebehind - in otherwords the form 'appears to always be visible' - even after partial postbacks - the ddls always popup and dissappear on any partial postback.... I would imagine this would be what others call 'flicker' but I just see them popup and dissapear -  I tried moving the code :

     

    this.registerPartialUpdateEvents();

    this.partialRenderingBegin.add(Function.createDelegate(this, this._onPartialRenderingBegin));

     Out of the initial portion you described biut get the same symptoms the the code fix solves albiet the constant 're-drawing' of the ddls......

    to various other parts of the .js such as the rendertabs, onhide, etc - logical places that I assumed would work better ... to no avail...

    Is there a way to attach it to the actual rerendering of the tabs instead of on the onint event?  In my particular case - since I have kinda figured out how to keep modals open and allow dynamic forms that have a somehwat elaborate method of handling the partial postbacks and handling the validation etc... the constant popping up dissappearing when trying to submit forms that require correction of validated fields is kinda a UI irritation...If all I had was a form with the ok cancel - the solution would be viable...

     Additionally now in Firefox - the screen does do the 'flicker' meaning the whole page lights up and thens greys on each postback....

    Thanks

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • BUG STILL in BETA1: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-20-2006, 3:14 PM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985

    Now not only do the DDL's dissapear but so does the gridview as well now and none of the form buttons which utlimately trigger the the Show() Hide() codes works now...I have moved the code the way the migration docs stated , added all the refs etc...  code compiles... the modal is invoked to show but will never close....error at end

     

    The original

     

    MPE MyPopUp = MPE.GetTargetProperties("Target1");

    if (MyPopUp != null)

    { MyPopUp.Show();

    }

    else MyPopUp.Hide();

     

    Since there is no GetTargetProperties I am using simply:

    if (MyPopUp != null)

    { MyPopUp.Show();

    }

    else MyPopUp.Hide();

     

    It handles all other processing until this code (which is only invoked when a button on the modal form is clicked.  It stops here and I get a

     SysWebForms.PageRequest<anagerParserErrorException: The message recieved from the server could not be parsed.

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: BUG STILL in BETA1: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-28-2006, 9:46 AM
    • Member
      35 point Member
    • ziwar
    • Member since 06-13-2006, 9:49 AM
    • Posts 7

    i also get the same message box error:

    SysWebForms.PageRequest<anagerParserErrorException: The message recieved from the server could not be parsed

    the only  thing is that i am using ajax beta release in a module of my dnn web site... and its only possible if i put scriptmanager in the skin page...

    my code is:

    <asp:Timer Enabled="true" ID="timer1" runat="server" Interval="5000" />

    <asp:UpdatePanel runat="server" ID="updatePaneel1" UpdateMode="conditional" RenderMode="Inline">

    <Triggers>

    <asp:AsyncPostBackTrigger ControlID="timer1" />

    </Triggers>

    <ContentTemplate>

    <asp:Label ID="lblItem" runat="server" Text=''></asp:Label>

    </ContentTemplate>

    </asp:UpdatePanel>

    the code is working if  the trigger is like this:

    <Triggers>

    <asp:PostBackTrigger ControlID="timer1" />

    </Triggers>

    but it is forcing the whole page to postback 

    anyone knows whats wrong???

     

  • Re: BUG STILL in BETA1: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-28-2006, 1:20 PM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985

    Check to see if you have trace enabled.  That will most likely be the cause of the SysWebForms.PageRequest<anagerParserErrorException: The message recieved from the server could not be parsed

     

    It will also cause some unpredicable behavior....

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: BUG STILL in BETA1: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-29-2006, 5:17 AM
    • Member
      35 point Member
    • ziwar
    • Member since 06-13-2006, 9:49 AM
    • Posts 7

    wel!!! i don't have trace record at all in my web config??? is it enabled by default?? i added one in my web.config and still getting the same error message box

    thx alot

     

  • Re: BUG STILL in BETA1: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-29-2006, 6:15 AM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 3:52 PM
    • West Seattle,WA
    • Posts 985

    do a search on the forums for SysWebForms.PageRequest and jodywbcb

     

    There is a message in particular that one of the Asp.Net Team members broke it down in terms of all the things to look for..

     

     

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: BUG STILL in BETA1: Additional Info and Reproducable CODE - Update Panels. Gridviews and Modal PopUps - DropDownList controls dissapear

    10-30-2006, 2:57 AM
    • Member
      35 point Member
    • ziwar
    • Member since 06-13-2006, 9:49 AM
    • Posts 7
    can't find out whats wrong!!!
Page 1 of 2 (17 items) 1 2 Next >