PC Review


Reply
Thread Tools Rate Thread

DataList with RadioButtons + Images: How to click on the images to activate the radiobutton?

 
 
Luis Esteban Valencia Muņoz
Guest
Posts: n/a
 
      3rd Jun 2005
I have a DataList, which looks a bit like this:
<aspataList id="dlstCheeseType" runat="server"
RepeatColumns="4" RepeatDirection="Horizontal"
ShowHeader="False" ShowFooter="False"
ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Center"
ItemStyle-Width="25%" Width="100%">
<ItemTemplate>
<asp:RadioButton ID="cheeseChoice" Text='<%#
Container.DataItem.Row("CheeseName") %>' Runat="server"
GroupName="cheeseGroup"/>
<br>
<asp:Image id=imgCheese Runat="server"
ImageUrl='<%# "Images/" & Container.DataItem.Row("CheeseImg") %>'
Width="100px" Height="100px">
</asp:Image>
</ItemTemplate>
</aspataList>
(sorry for the formatting )

Basically it's filled with a bunch of choices from the database, with a Name
and a graphic. The user should be able to choose one of them using the radio
button (that doesn't work properly, but that's a different question ).

My question:
How can I add something to allow the user to click on the images and
activate the RadioButtons that way? (preferably something client-side, i.e.
without posting the full form to the server)

Thanks!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Images in DataList Barry Microsoft Dot NET Framework 0 6th Jul 2007 03:56 PM
getting images from SQL 2 work with datalist Larry Microsoft ASP .NET 0 12th Oct 2005 03:33 AM
Datalist + images Celine Microsoft C# .NET 0 27th Jun 2004 11:56 AM
Display images in Datalist John Microsoft ASP .NET 1 30th Mar 2004 05:53 PM
datalist images Brent Burkart Microsoft ASP .NET 1 22nd Mar 2004 07:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:52 AM.