还有在传递参数的时候
this.hypelink.NavigateUrl = "LearnDetalis.aspx?Title=" + this.courseTitle + "& Subject="+this.courseSubject + "&uploader="+this.uploader;
在LearnDetalis.aspx中接收
protected void Page_Load(object sender, EventArgs e)
{
string Title = Request.QueryString["Title"];
string Subject = Request.QueryString["Subject"];
string uploader = Request.QueryString["uploader"];
Response.Write(Title + Subject + uploader);
}
其中我传递this.courseTitle="C++程序设计"
在LearnDetalis.aspx中只显示C 程序设计,我知道是要用server.encode
该怎么做?还有因为我不是每次传递的参数this.courseTitle都带有"++"这样的特殊符号,我该怎么写?
请高手指点一下,谢谢!