G
Guest
Hello,
I'm trying to add an attribute to a cell:
td.Attributes.Add("ondblCilck",
"OpenWindow('location.aspx?id=4&purpose=new')");
The trouble is, asp.net encodes this and sends the response back to the
browser as:
<td ... ondblClick="OpenWindow('location.aspx?id=4&purpose=new');"...
If you notice it changed the "&" to "&". This encoding process makes
sense under normal conditions, but how do I prevent that from happening in
this particular case? Any help would be appreciated.
Thanks,
I'm trying to add an attribute to a cell:
td.Attributes.Add("ondblCilck",
"OpenWindow('location.aspx?id=4&purpose=new')");
The trouble is, asp.net encodes this and sends the response back to the
browser as:
<td ... ondblClick="OpenWindow('location.aspx?id=4&purpose=new');"...
...</td>
If you notice it changed the "&" to "&". This encoding process makes
sense under normal conditions, but how do I prevent that from happening in
this particular case? Any help would be appreciated.
Thanks,