PC Review


Reply
Thread Tools Rate Thread

Custom attributes on controls fail validation

 
 
=?Utf-8?B?RG90Y29t?=
Guest
Posts: n/a
 
      20th Nov 2005
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?

--
Paul Taylor
Dotcom Software Solutions
www.dotcomsoftwaresolutions.co.uk
 
Reply With Quote
 
 
 
 
Robbe Morris [C# MVP]
Guest
Posts: n/a
 
      21st Nov 2005
http://www.eggheadcafe.com/articles/...xviewstate.asp

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.masterado.net





"Dotcom" <(E-Mail Removed)> wrote in message
news:1116A621-30BD-491C-B0AA-(E-Mail Removed)...
>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?
>
> --
> Paul Taylor
> Dotcom Software Solutions
> www.dotcomsoftwaresolutions.co.uk



 
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
Custom Controls with non-String Attributes Nathan Sokalski Microsoft ASP .NET 3 28th Jun 2006 10:20 AM
Custom controls attributes Julien Microsoft ASP .NET 4 2nd Feb 2006 12:55 PM
Custom Attributes on Controls WFB Microsoft Dot NET Framework 5 17th Feb 2005 02:26 PM
Page appears to fail validation even though it has no validation controls =?Utf-8?B?ZGh1cndpdHo=?= Microsoft ASP .NET 1 10th Apr 2004 08:37 AM
some attributes don't work for custom controls Christian Microsoft VB .NET 1 10th Feb 2004 10:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:48 AM.