Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 26th, 2005, 07:12 PM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Showing images in checkboxlist, pls help

Hi,

How could I put images in a checkboxlist?


Please help.


Thanks.
 
Old February 3rd, 2005, 04:13 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

You can't put images in a checkboxlist.CheckboxList Class doesnt support members for images.
If you want the images with the checkbox,you can do some logic to display it.Put checkbox ,image as rows inside the table.

 
Old February 5th, 2005, 11:56 PM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks

I'm thinking of using imagebutton. So I need to separate all the checkboxes and images, right?
 
Old February 9th, 2005, 04:18 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Yes you have to put it as separate.But use images instead of imagebutton.

 
Old July 4th, 2007, 06:46 AM
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can add images to a CheckBoxList by overriding the RenderItem method in a subclass of CheckBoxList. I describe how to do just this on my blog.

http://priscimon.com/blog/2007/07/02...trol-in-aspnet

I hope this helps.





Similar Threads
Thread Thread Starter Forum Replies Last Post
images not showing in IE Adam H-W CSS Cascading Style Sheets 3 March 20th, 2008 07:02 AM
why images are not showing up in my report? yuqlin BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 6 November 29th, 2005 04:15 AM
showing images from database umair_rathore Classic ASP Databases 1 April 23rd, 2005 04:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.