apparently attributes on web controls are automatically partially encoded
for example, if you do the following
System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();
img.Attributes.Add("whatever","<");
you get this in html
<img whatever="<" />
(the < is encoded)
but,
img.Attributes.Add("whatever",">");
results in
<img whatever=">"/>
(the > is not encoded)
i dont know why. it would be nice if the developer could be trusted to do his own half assed encoding if the need came up, instead of fighting to undo it... anyway, how do i undo it? i need to make it not screw up my code so i can pass html to a js function