Asp.net| Code | tips
Issues to resolve:
Upload the following URL as a parameter to the other page
1 http://domain/de.apx?uid=12&page=15
2 after the URL in the parameters of the Chinese characters, such as: .... aspx?title= Crane
In the case of the above, you must go through a rul encoding and decoding process, otherwise there will be an error.
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//the value from above in a different file
5if (request.querystring["url"]!= null)
6 {
7 String url = Server.urldecode (request.querystring["url"). ToString ());
8 this.txtAddress.Text = URL;
9}
Ten if (request.querystring["title"]!= null)
11 {
The string title = Server.urldecode (request.querystring["title"). ToString ());
This.txtTitle.Text = title;
14}