Gridview (DetailView, et al) template field disable

P

Plissskin

I would like to put radio buttons (check boxes, drop down lists) in an
ItemTemplate field and have them disabled so the user is not
confused. However, I do not like simply disabling the controls since
this uses the standard Windows disable and "grays" everything out,
rendering them fairly unreadable. Has anyone found a workaround that
mimicks the old VB 6.0 "Locked" behavior that disallows any use of the
controls but leaves them in "enabled" look (colors,etc)? I think this
is something MS should consider for these .net controls in the
future...
 
M

Milosz Skalecki [MCAD]

Howdy,

First of all it does not depend on Microsoft as all ASP.NET controls render
HTML and are parsed by the browser. Unfortunatelly, web srever control is
build from span so ypu cvan't use Readonly expando, but you could use HTML
server control:

<input runat="server" id="whatever" readOnly="readOnly" type="radio"
checked="true" />

hope it helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top