Hello TS,
Based on my understanding, you built a custom control which inherits from
CheckBoxList. You added some attributes and client events in
AddAttributesToRender method. But the related attributes and events can't
be rendered out. If I have misunderstood you, please feel free to let me
know.
As far as I know, this is a known issue. The issue that caused this
oversight is in that the CheckBoxList renders both a table tag and mutiple
input tags. It is ambiguous as to which tag should receive the attributes
added in AddAttributesToRender method. Fixing this issue would involve a
major design decision (potentially adding some object to allow the addition
of attributes to inner tags) and a large amount of code, so it is not
fixable at this point.
Resolution:
To work around this problem, you can add the attribute to the CheckBoxList
via the Attributes collection in the PreRender phase. An alternative
workaround
would be to write an entirely new CheckBoxList control (deriving from
ListControl) that performs the additional functionality needed.
Sincerely,
Vince Xu
Microsoft Online Support
£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
MSDN Managed Newsgroup support offering is for non-urgent issues where an
initial response from the community or a Microsoft Support Engineer within
2 business day is acceptable. Please note that each follow up response may
take approximately 2 business days as the support professional working with
you may need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx