asp.net literal text values contained in ajax accordion migrating south for the winter -


so i've got ajax accordion condensing filter contents so:

<asp:accordion id="accschools" runat="server">     <panes>         <asp:accordionpane id="apnschviaddl" runat="server">             <header><h2 class="opt">select schools (p1)</h2></header>             <content>                 pane 1 content                 <table><tr>                 <asp:literal id="litddlschs" runat="server"></asp:literal>                 </tr></table>             </content>         </asp:accordionpane>          <asp:accordionpane id="apnschviachk" runat="server">             <header><h2 class="opt">select schools school (p2)</h2></header>             <content>                 pane 2 content                 <table style="width:99%; text-align:right;">                     <asp:literal id="litschschks" runat="server"></asp:literal>                 </table>             </content>         </asp:accordionpane>          <asp:accordionpane id="apnschviagrnt" runat="server">             <header><h2 class="opt">select schools grant (p3)</h2></header>             <content>                 pane 3 content                 <table style="width:99%; text-align:right;">                     <asp:literal id="litschsgrnt" runat="server"></asp:literal>                 </table>             </content>         </asp:accordionpane>          <asp:accordionpane id="apnschdummypane" runat="server">             <header><h2 class="opt">dummy pane (p4)</h2></header>             <content>                 pane 4 content                 <asp:literal id="litsafetynet" runat="server"></asp:literal>             </content>         </asp:accordionpane>     </panes> </asp:accordion> 

the problem is, on postback, literals shift text value down one. litddlschs.text reverts "", litschchks.text litddlschs.text was, etc... litsafetynet falling off cliff bit bucket.

currently have safetynet catching lit fall off otherwise, , manually pulling them up. feels..... clunky. have idea causing literal text values migrate south winter?

edit: okay so, safetynet didn't work, merely thought of typing , didn't wanna seem dumb not having tried it. reloading of literals every page load fix it, but... part of why did way did wouldn't have reload literals every time- 2 of them 30k characters minor formatting applied html they're producing (so verify wasn't leaving off close tag).

edit 2: fix does work, i'm bad @ implementing things in panic apparently (to fair it'd have worked if had finished implementing schgrnts's setter). fixed safetynet, , it's working. have set if net empty, it'll not pull up, if ever accidentally fix this, nothing breaks.

edit 3: the question still remains: have idea causing literal text values migrate south winter?


Comments