帮看下。。。。。
private void Bu_Add_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
this.Response.Redirect("../Refer/ProductRefer.aspx?cCusCode="+System.Web.HttpUtility.HtmlEncode(this.LaCusCode.Text.Trim())+"&cCusName="+System.Web.HttpUtility.HtmlEncode(this.LaCusName.Text));
}
这是页面跳转时向要跳转的页面传递参数,LaCusCode是一个WEB(Label)控件,将Label的内容赋给cCusCode为什么前面+了个System.Web.HttpUtility.HtmlEncode呢,啥意思?cCusCode="+this.LaCusCode.Text.Trim()+"这样不行吗?