【发布时间】:2011-12-22 19:50:42
【问题描述】:
我有问题。
这些是我的代码行:
HtmlTableRow row = new HtmlTableRow();
row.Attributes.Add("style", "cursor: pointer;");
row.Attributes.Add("onClick", string.Format("toggle('{0}');", AttributeName));
我在 .Net 2.0 中使用过它,它运行良好。但现在我正在使用 .net 4.0 和撇号
在我的网页中被转换为',它不再起作用了。
我怎样才能得到撇号本身或绕过这个问题??
注意好像是known problem...
【问题讨论】:
标签: c# c#-4.0 attributes html-table