Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Show content of radiobuttonlist in a label
Henrik Mikkelsen
Jan 22 2013 8:14 AM
1.3k
Reply
Heey all
i have just startet to learn asp.net and C#
and i have run into a little problem
i have a radiobuttonlist that gets its items from sql,
then i would like to show the item i have selected not the "ID" the "name" it has.
My code
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
DataSourceID="ObjShipping" DataTextField="ShippingMethod"
DataValueField="ShippingMethodID" AutoPostBack="True">
</asp:RadioButtonList>
<asp:ObjectDataSource ID="ObjShipping" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetShippingMethod"
TypeName="DataSet1TableAdapters.FL_ShippingMethodTableAdapter">
</asp:ObjectDataSource>
<asp:Label ID="lblShippingMethod" runat="server" Text=""></asp:Label>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to invoke .cs file from HTML UI ????
The abstract classes