c# - Get the text from a radiobuttonlist instead of the value -


i've searched on internet , can't seem find solution little problem. got radiobuttonlist selected value saying:

radiobuttonlist1.selectedvalue 

this works great when trying value

 <asp:radiobuttonlist id="radiobuttonlist1" runat="server" repeatdirection="horizontal" repeatlayout="table" cellspacing="50">                         <asp:listitem value="1" text="helt enig"></asp:listitem>                         <asp:listitem value="2" text="delvist enig"></asp:listitem>                         <asp:listitem value="3" text="hverken eller"></asp:listitem>                         <asp:listitem value="4" text="delvist uenig"></asp:listitem>                         <asp:listitem value="5" text="helt uenig"></asp:listitem>                     </asp:radiobuttonlist> 

but i've come point text also. saying:

   radiobuttonlist1.text; 

but reason "value" again. know if there's way "text" also?

radiobuttonlist1.selecteditem.text 

this should it.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -