Re: Issue with Control.Attributes Property when adding Javascript



ChrisMiddle10@xxxxxxxxx wrote:
I want to add javascript to an HtmlInputButton control attribute ...
How do I preserve the literal "<" and "&"?

You don't. When you call Attributes.Add(), ASP.NET automatically
converts them to their HTML entity references, which is correct. Are
you finding that this method doesn't work correctly?

Tim

.