我使用正则表达式来删除排序它的列后面的 javascript。
string html2 = Regex.Replace(sw.ToString(), @"(<input type=""javascript""\/?[^>]+>)", @"", RegexOptions.IgnoreCase);
html2 = Regex.Replace(html2, @"(<a \/?[^>]+>)", @"", RegexOptions.IgnoreCase);
Response.Write(html2.ToString());