Problems to be solved:
Pass the following URL as a parameter to other pages
1 http://domain/de.apx?uid=12&page=15
2 Chinese characters appear in the parameters after the url, such as: ....aspx?title=When the above situation occurs, the crane must go through a RUL encoding and decoding process, otherwise an error will occur.
The code is as follows:
1//Pass value
2string temp = " <a href='Add.aspx?url=" +Server.UrlEncode( skin.Page.Request.Url.AbsoluteUri )+ "&title=" +Server.UrlEncode( skin.Page.Header.Title )+ "'>Add to favorites</a>");
3
4//Get the value passed above in another file
5if (Request.QueryString["url"] != null)
6 {
7 string url = Server.UrlDecode(Request.QueryString["url"].ToString());
8 this.txtAddress.Text = url;
9}
10 if (Request.QueryString["title"] != null)
11 {
12 string title = Server.UrlDecode(Request.QueryString["title"].ToString());
13 this.txtTitle.Text = title;
14 }