Hi, I have a problem with a LinkButton which is initially not visible (-> set during Page_Load). The LinkButton is contained among with a few other controls in an ASP:Panel (see code):
<asp:Panel ID="pnlLogin" runat="server">
<asp:LoginName ID="loginName" runat="server" FormatString="Welcome {0}" />
<asp:LinkButton ID="btnUpdateProfile" runat="server" CssClass="login" Text="My Profile"></asp:LinkButton>
<asp:LinkButton ID="btnLoginMain" runat="server" CssClass="login">Log In</asp:LinkButton>
<asp:LinkButton ID="btnCreateLogin" runat="server" CssClass="login">Register</asp:LinkButton>
</asp:Panel>
After evaluating an ajax_request event on the server the visibility of the LinkButton is set to true if a certain condition is met.
At first sight everything seems alright, the previous hidden control is now displayed. However if one takes a look at the rendered
segment the link-quality is gone:
<div id="pnlLoginPanel">
<div id="pnlLogin">
<a id="btnLoginMain" class="login" href="javascript:__doPostBack('btnLoginMain','')">Log In</a>
<a id="btnCreateLogin" class="login" href="javascript:__doPostBack('btnCreateLogin','')">Register</a>
</div>
</div>
This is quite unfortunate since this LinkButton should now function as OpenerElementID of a RadWindow - which it can't do any
more. Can anybody point out to me, what is going wrong ?
Thanks a lot,
Wolfgang
<asp:Panel ID="pnlLogin" runat="server">
<asp:LoginName ID="loginName" runat="server" FormatString="Welcome {0}" />
<asp:LinkButton ID="btnUpdateProfile" runat="server" CssClass="login" Text="My Profile"></asp:LinkButton>
<asp:LinkButton ID="btnLoginMain" runat="server" CssClass="login">Log In</asp:LinkButton>
<asp:LinkButton ID="btnCreateLogin" runat="server" CssClass="login">Register</asp:LinkButton>
</asp:Panel>
After evaluating an ajax_request event on the server the visibility of the LinkButton is set to true if a certain condition is met.
At first sight everything seems alright, the previous hidden control is now displayed. However if one takes a look at the rendered
segment the link-quality is gone:
<div id="pnlLoginPanel">
<div id="pnlLogin">
<a id="btnLoginMain" class="login" href="javascript:__doPostBack('btnLoginMain','')">Log In</a>
<a id="btnCreateLogin" class="login" href="javascript:__doPostBack('btnCreateLogin','')">Register</a>
</div>
</div>
This is quite unfortunate since this LinkButton should now function as OpenerElementID of a RadWindow - which it can't do any
more. Can anybody point out to me, what is going wrong ?
Thanks a lot,
Wolfgang