Yes, I am sure because I create the value by assigning a value to a String
variable, and then using that variable in the Attributes.Add() method. For
example:
Dim onmouseover as String= "my javascript code" 'This contains &'s in my
actual code
mycontrol.Attributes.Add("onmouseover",onmouseover )
When I used this technique and ran a Debug session, the String onmouseover
looked exactly as I wanted, but the rendered code had replaced the &'s with
& which is what I am trying to avoid. Any ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com http://www.nathansokalski.com/
"Jesse Houwing" <je***********@newsgroup.nospamwrote in message
news:21**************************@news.microsoft.c om...
Hello Nathan,
>I am adding an onmouseover attribute using the Attributes.Add()
method, and the String I am using for the value contains the &
character. However, when rendered the & is converted to the HTML
representation of & which causes my JavaScript not to work. What
can I do to prevent the Add() method from modifying my value? Thanks.
Any attribute must escape the HTML special characters. An onCLick as well.
Are you sure this is causing the error?
--
Jesse Houwing
jesse.houwing at sogeti.nl