Re: Issue with Control.Attributes Property when adding Javascript
- From: "apathetic" <apatheticgenius@xxxxxxxxx>
- Date: 11 Oct 2006 16:15:29 -0700
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
.
- Follow-Ups:
- Re: Issue with Control.Attributes Property when adding Javascript
- From: ChrisMiddle10
- Re: Issue with Control.Attributes Property when adding Javascript
- From: apathetic
- Re: Issue with Control.Attributes Property when adding Javascript
- References:
- Issue with Control.Attributes Property when adding Javascript
- From: ChrisMiddle10
- Issue with Control.Attributes Property when adding Javascript
- Prev by Date: Re: Issue with Control.Attributes Property when adding Javascript
- Next by Date: Re: Issue with Control.Attributes Property when adding Javascript
- Previous by thread: Re: Issue with Control.Attributes Property when adding Javascript
- Next by thread: Re: Issue with Control.Attributes Property when adding Javascript
- Index(es):