Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Issue with Control.Attributes Property when adding Javascript

Reply
Thread Tools

Issue with Control.Attributes Property when adding Javascript

 
 
ChrisMiddle10@gmail.com
Guest
Posts: n/a
 
      10-11-2006
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 &lt; y &amp;&amp; x != y )
{
// do something
}

How do I preserve the literal "<" and "&"?

Thanks a lot!

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
OO Javascript - Class.Prototype.Property vs. This.Property Spam Catcher Javascript 4 11-21-2007 05:23 PM
Issue with Control.Attributes Property when adding Javascript ChrisMiddle10@gmail.com ASP .Net 6 10-11-2006 11:26 PM
DataBinder.Eval for an object's property property... like Eval(Container.DataItem,"Version.Major") Eric Newton ASP .Net 3 04-04-2005 10:11 PM
Set CSS property equal to another CSS property? Noozer HTML 10 10-13-2004 09:20 PM
Is there a way to set the a CSS property to be explicitly the same as another CSS property? Joshua Beall HTML 1 12-10-2003 07:21 PM



Advertisments