.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Radiobuttons List

Posted By: Rama Krishna     Posted Date: September 24, 2009    Points:2   Category :ASP.Net
I used this cide for radiobuttons list,but my requirement is between symbol and text i want to put an image,could any one give me guidelines

<asp:radiobuttonlist AutoPostBack="true" CssClass="text" id="rdContactType" runat="server">
<asp:listitem id="option1" runat="server" value="Student">

<asp:listitem id="option2" runat="server" value="Staff" />
<asp:listitem id="option3" runat="server" value="Parents" />
<asp:listitem id="option4" runat="server" value="Admin/Principal" />
<asp:listitem id="option5" runat="server" value="Management" />

Author: Rahul             
Posted Date: September 24, 2009     Points: 5   

try to do like this to insert the image in radioButtonList bos in asp.net.... and also give the value field..

RadioButtonList1.Items[0].Text = "<img src='image1.gif' width=50px>";
RadioButtonList1.Items[1].Text = "<img src='image2.gif' width=50px>";
RadioButtonList1.Items[2].Text = "<img src='image3.gif' width=50px>";
RadioButtonList1.Items[3].Text = "<img src='image3.gif' width=50px>";

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend