c# - asp:panel hiding as soon as I click on any radio button -
i have asp:panel has radio buttons/text boxes on it. panel hiding click on radio buttons / text boxes error , should post when click on search button. code follows:
<%@ command language="c#" autoeventwireup="true" codebehind="portfoliomenu.ascx.cs" inherits="jmmb.portfoliomanagement.website.usercontrols.portfoliomenu" %> <%@ register assembly="ajaxcontroltoolkit" namespace="ajaxcontroltoolkit" tagprefix="asp" %> <div class="navbar"> <div class="navbar-inner"> <%--<a class="brand" href="#"><asp:literal id="litsitename" text="<%$ resources:general, sitename %>" runat="server"></asp:literal></a>--%> <ul class="nav"> <li> <asp:hyperlink id="lnknewportfolio" runat="server" cssclass=""> <i class="icon-plus"></i> <asp:literal id="literal6" runat="server" text="<%$ resources:menuitem_newportfolio %>"></asp:literal> </asp:hyperlink> </li> <li> <asp:hyperlink id="lnksearch" runat="server" cssclass=""> <i class="icon-search"></i> <asp:literal id="litsearch" runat="server" text="<%$ resources:menuitem_search %>"></asp:literal> </asp:hyperlink> </li> <!-- <asp:placeholder id="placeholder1" runat="server"> <li class="dropdown"> <a href="#" id="viewdrop" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-folder-close"> </i> <asp:literal id="literally2" runat="server" text="<%$ resources:menuitem_view %>"></asp:literal> <b class="caret"></b> </a> <ul class="dropdown-menu" role="menu" aria-labelledby="drop3"> <li id="li1" runat="server"> <asp:hyperlink id="lnkstandarddocs" runat="server"> <i class="icon-folder-open"></i> <asp:literal id="literally8" runat="server" text="<%$ resources:menuitem_standard documents%>"></asp:literal> </asp:hyperlink> </li> </ul> </li> </asp:placeholder> --> <asp:placeholder id="placeholder2" runat="server"> <li> <asp:panel runat="server" visible="true"> <asp:textbox id="txtsearchadvancedkeyword" runat="server" text="<%$ resources:menuitem_enter_keyword %>" ></asp:textbox> <asp:linkbutton runat="server" onclick="search"><i class="icon-search" style="margin-bottom:5px"></i></asp:linkbutton> </asp:panel> </li> <li class="dropdown" style="margin-left:-74px;margin-top:-5px;"> <a href="#" id="a1" role="button" class="dropdown-toggle" data-toggle="dropdown" style="margin-top:6px;padding-top:4px;padding-bottom:4px;"> <b class="caret"></b> </a> <ul class="dropdown-menu" role="menu" aria-labelledby="drop3" style="margin-left:-180px"> <li id="li2" runat="server" style="margin:20px"> <br /> <asp:literal id="literal10" runat="server">search by</asp:literal> <br /> <asp:panel runat="server" width="500" visible="true" > <!--<ul class="nav">--> <br /> <asp:radiobutton id="searchadvancedtypeportfolio" groupname="searchadvancedtype" runat="server" /> <asp:label runat="server" text="portfolio"></asp:label> <asp:label runat="server" text=" "></asp:label> <asp:radiobutton id="searchadvancedtypeclient" groupname="searchadvancedtype" runat="server"/> <asp:label runat="server" text="client"></asp:label> <asp:label runat="server" text=" "></asp:label> <asp:radiobutton id="searchadvancedtypeagent" groupname="searchadvancedtype" runat="server"/> <asp:label runat="server" text="agent"></asp:label> <br /> <br /> <asp:textbox runat="server" id="txtsearchbyno" text="number" width="100"></asp:textbox> <asp:label runat="server" text=" "></asp:label> <asp:literal runat="server">or</asp:literal> <asp:label runat="server" text=" "></asp:label> <asp:textbox runat="server" id="txtsearchbyname" text="name" width="100"></asp:textbox> <!-- </ul>--> </asp:panel> <br /> <asp:literal id="literal9" runat="server">and or by</asp:literal> <br /> <asp:panel id="panel1" runat="server" width="500"> <div class="navbar-inner"> <ul class="nav"> <br /> <asp:radiobutton id="searchadvancedlastreviewdate" groupname="searchadvanceddate" runat="server"/> <asp:label runat="server" text="last review date"></asp:label> <asp:label runat="server" text=" "></asp:label> <asp:radiobutton id="searchadvancednextreviewdate" groupname="searchadvanceddate" runat="server"/> <asp:label runat="server" text="next review date"></asp:label> <asp:label runat="server" text=" "></asp:label> <asp:radiobutton id="searchadvancedcreatedate" groupname="searchadvanceddate" runat="server"/> <asp:label runat="server" text="create date"></asp:label> <br /> <br /> <asp:calendarextender id="searchadvancedajaxtdateextender1" runat="server" targetcontrolid="txtsearchadvanceddatestart" popupbuttonid="image2" popupposition="bottomleft"> </asp:calendarextender> <asp:textbox id="txtsearchadvanceddatestart" backcolor="white" runat="server" text="start" cssclass="" style="cursor :default" width="100"></asp:textbox> <img id="searchadvancedimg1" alt="" src="~/content/images/date_delete.png" runat="server"/> <asp:label id="label1" runat="server" text=" "></asp:label> <asp:calendarextender id="searchadvancedajaxtdateextender2" runat="server" targetcontrolid="txtsearchadvanceddateend" popupbuttonid="image2" popupposition="bottomleft"> </asp:calendarextender> <asp:textbox id="txtsearchadvanceddateend" runat="server" cssclass="" backcolor="white" text="end" style="cursor :default" width="100"></asp:textbox> <img id="searchadvancedimg2" alt="" src="~/content/images/date_delete.png" runat="server"/> </ul> </div> </asp:panel> <br /> <asp:button runat="server" id="btnsearchadvanced" text="search" onclick="submit"></asp:button> <br /> </li> </ul> </li> </asp:placeholder> <asp:placeholder id="phmanagemenu" runat="server"> <li class="dropdown"> <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-tasks"></i> <asp:literal id="literal1" runat="server" text="<%$ resources:menuitem_manage %>"></asp:literal> <b class="caret"></b> </a> <ul class="dropdown-menu" role="menu" aria-labelledby="drop3"> <li id="lisettings" runat="server"> <asp:hyperlink id="lnksettings" runat="server"> <i class="icon-wrench"></i> <asp:literal id="literal2" runat="server" text="<%$ resources:menuitem_settings %>"></asp:literal> </asp:hyperlink> </li> <li id="liclients" runat="server"> <asp:hyperlink id="lnkclients" runat="server"> <i class="icon-user"></i> <asp:literal id="literal3" runat="server" text="<%$ resources:menuitem_clients %>"></asp:literal> </asp:hyperlink> </li> <li id="liaccounts" runat="server"> <asp:hyperlink id="lnkaccounts" runat="server"> <i class="icon-briefcase"></i> <asp:literal id="literal4" runat="server" text="<%$ resources:menuitem_accounts %>"></asp:literal> </asp:hyperlink> </li> <li id="liattachments" runat="server"> <asp:hyperlink id="lnkattachments" runat="server"> <i class="icon-download-alt"></i> <asp:literal id="literal5" runat="server" text="<%$ resources:menuitem_attachments %>"></asp:literal> </asp:hyperlink> </li> <li> <asp:hyperlink id="lnkrecommendation" runat="server" > <i class="icon-bullhorn"></i> <asp:literal id="literal8" runat="server" text="<%$ resources:recommendations %>"></asp:literal> </asp:hyperlink> </li> <li class="divider"></li> <li id="liobjectives" runat="server"> <asp:hyperlink id="lnkobjectives" runat="server"> <i class="icon-calendar"></i> <asp:literal id="literal7" runat="server" text="<%$ resources:menuitem_objectives %>"></asp:literal> </asp:hyperlink> </li> </ul> </li> </asp:placeholder> <li class="divider-vertical"></li> </ul> <asp:placeholder id="phportfolionumber" runat="server" visible="false"> <ul class="nav pull-right"> <li> <asp:hyperlink id="lnkportfolio" runat="server"> <asp:label id="lblportfolioname" runat="server" text="<%$ resources:label_portolioname %>"></asp:label> <asp:literal id="litportfolioname" runat="server"></asp:literal> (<asp:literal id="litportfolionumber" runat="server"></asp:literal>) </asp:hyperlink> </li> </ul> </asp:placeholder> </div> </div>
anyone thought ?
thanks
try set property autopostback="false"
radiobuttons:
<asp:radiobutton id="searchadvancedlastreviewdate" groupname="searchadvanceddate" autopostback="false" runat="server"/>
c# asp.net .net
No comments:
Post a Comment