Groups | Blog | Home
all groups > asp.net building controls > october 2003 >

asp.net building controls : Radio buttons/checkboxes


lmeacham
10/24/2003 1:57:14 PM
Has anyone created a custom radio button or check box
control that allows you to change the base image of the
control so that it's not the microsoft standard circle and
box? If so I'd love to hear about it!

Thanks

lmeacham
10/24/2003 2:15:33 PM
Yeah... Just don't want to have to go the Java route -- my
app is all finished except I wanted it to look a little
more professional, these controls are added to the page at
runtime (dynamically) -- I could code it in java and it
may be the only way for now. I called Infragistics this
morning and they don't have anything either -- you're
right, it may be impossible.

[quoted text, click to view]
Ron Vecchi
10/24/2003 5:05:40 PM
So would I, I don't think it's possible.

One possibility would be to create to images, one selected and one not
selected. when a user clicks the image it changes to the check or unchecked
depending on which one was currently displayed through client-side JS. Then
using client side JS also update a hidden field to a checked/unchecked flag
when click occures. On server side perform actions based on the hidden
field.

[quoted text, click to view]

Victor Garcia Aprea [MVP]
10/24/2003 7:32:41 PM
Hi,

You don't really need Java for this. It would be possible (altough not
trivial) to code this using javascript. Maybe you can find some code to use
as a jumpstart on any of the javascript code repositories in the net,

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

[quoted text, click to view]

jiany NO[at]SPAM online.microsoft.com
10/29/2003 6:22:14 AM
Hi Lance,

Have you checked Ron's response? If you have any concerns, please feel free
to let me know.

In addition, I have done more research regarding this issue. I would like
to share the following information with you.

Either in the case that you directly make use of the checkbox or radiobox
web controls provided by ASP.NET, or in the case that you created your own
customer checkbox or radiobox, what will be rendered to the browser should
comfort to the HTML standard. In HTML standard, the circle was adopted by a
radio box and the box was adopted by checkbox as well.

If you want to implement your task, I think you should consider of using
other ways.

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button