asp.net - Listbox without values -
this happens. don't understand why not working, because if copy code normal template works fine :s dont think code issue. im working asp , c#![enter image description here][1]
http://s21.postimg.org/3jsi8351z/weird.png here prints screen took explain issue
asp:
<asp:panel id="pnltopico" runat="server" groupingtext="topico" height="100px" width="550px" visible="false" wrap="false"> <asp:dropdownlist id="droptopico" runat="server" autopostback="true" datasourceid="sqldatasource1" datatextfield="nome" datavaluefield="id_topico" height="22px" onselectedindexchanged="droptopicoselectedindexcha nged" width="169px"> </asp:dropdownlist> <asp:panel id="pnlpermissoestopico" runat="server" groupingtext="permissões" height="59px" style="margin-top: 0px" width="354px" wrap="false" clientidmode="inherit"> <asp:listbox id="lbpermitidotp" runat="server" enableviewstate="true" height="80px" ></asp:listbox> <asp:button id="btnproibirtp" runat="server" onclick="btnpermitirclick" text=">>" /> <asp:button id="btnpermitirtp" runat="server" onclick="btnnaopermitirclick" text="<<" height="26px" /> <asp:listbox id="lbproibidotp" runat="server" enabletheming="false" enableviewstate="true" height="80px" onselectedindexchanged="lbproibidotp_selectedindex changed" ></asp:listbox> </asp:panel>
since code working fine dont think need post c# code let me know if help. help
hey modified code little , compiled working fine now:
<asp:panel id="pnltopico" runat="server" groupingtext="topico" height="100px" width="550px" visible="false" wrap="false"> <asp:dropdownlist id="droptopico" runat="server" autopostback="true" datatextfield="nome" datavaluefield="id_topico" height="22px" onselectedindexchanged="droptopico_selectedindexchanged" width="169px"> </asp:dropdownlist> </asp:panel> <asp:panel id="pnlpermissoestopico" runat="server" groupingtext="permissões" height="59px" style="margin-top: 0px" width="354px" wrap="false" clientidmode="inherit"> <asp:listbox id="lbpermitidotp" runat="server" enableviewstate="true" height="80px" > <asp:listitem text="admin" value="admin" /> <asp:listitem text="guest" value="guest" /> </asp:listbox> <asp:button id="btnproibirtp" runat="server" onclick="btnproibirtp_click" text=">>" /> <asp:button id="btnpermitirtp" runat="server" text="<<" height="26px" /> <asp:listbox id="lbproibidotp" runat="server" enabletheming="false" enableviewstate="true" height="80px"> <asp:listitem text="moderator" value="moderator" /> <asp:listitem text="utilizer" value="utilizer" /> </asp:listbox> </asp:panel>
and have put breakpoint on button click of btnproibirtp , verify , works , think u had tags formation error or :
protected void btnproibirtp_click(object sender, eventargs e) { string lbl1 = lbproibidotp.selectedvalue; }
regards
Comments
Post a Comment