Custom attributes on controls fail validation

G

Guest

I find custom attributes on controls a great way to cache control-related
data because it gets persisted through postback in ViewState. The only
problem though is that custom attributes cause your markup to fail W3C
validation.

It isn't possible to add data to a control's individual ViewState property
(which would be a useful enhancement). Can anyone suggest another way round
this?
 

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

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top