protected void Button6_Click(object sender, EventArgs e)
{
this.Label11.Text = HtmlEncode(this.TextBox3.Text);
}
protected static string HtmlEncode(string the)
{
the = the.Replace("<", "<");
the = the.Replace(" ", " ");
the = the.Replace("/"", """);
the = the.Replace("/'", "'");
the = the.Replace("/n", "<br/> ");
return the;
}
通过在 Page 指令或 配置节中设置 validateRequest=false
就是在页面中加入