Issue with Control.Attributes Property when adding Javascript
- From: ChrisMiddle10@xxxxxxxxx
- Date: 11 Oct 2006 16:02:25 -0700
Sorry to bother everyone with this question, but the answer to this the
question is difficult to search for. I want to add javascript to an
HtmlInputButton control attribute. A portion of the javascript goes
something like this:
if( x < y && x != y )
{
// do something
}
It is rendered as follows:
if( x < y && x != y )
{
// do something
}
How do I preserve the literal "<" and "&"?
Thanks a lot!
.
- Follow-Ups:
- Re: Issue with Control.Attributes Property when adding Javascript
- From: apathetic
- Re: Issue with Control.Attributes Property when adding Javascript
- From: apathetic
- Re: Issue with Control.Attributes Property when adding Javascript
- From: ChrisMiddle10
- Re: Issue with Control.Attributes Property when adding Javascript
- Prev by Date: Issue with Control.Attributes Property when adding Javascript
- Next by Date: Re: Get the named anchor from the URL?
- Previous by thread: Issue with Control.Attributes Property when adding Javascript
- Next by thread: Re: Issue with Control.Attributes Property when adding Javascript
- Index(es):