| |

VerySource

 Forgot password?
 Register
Search
View: 1769|Reply: 10

Problems with Request.QueryString []

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-9 22:40:01
| Show all posts |Read mode
I pass a string similar to xml to another page in one page. In this page, I use Request.QueryString [] to accept, how can I say that there are unsafe characters. How can I
To receive such characters !!
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-11 12:36:02
| Show all posts
Encode with Server.UrlEncode (str)
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-11 12:54:01
| Show all posts
string url = "aa.asp? xml =" + Server.UrlEncode (strXml)
Reply

Use magic Report

0

Threads

25

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-1-11 13:09:01
| Show all posts
If you encounter special characters in url passing parameters, you must perform encoding conversion.
Reply

Use magic Report

1

Threads

18

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-13 17:36:01
| Show all posts
mark
Reply

Use magic Report

0

Threads

29

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-1-14 20:00:02
| Show all posts
It seems that the characters after Encode cannot exceed 128 bytes, right? If the Chinese characters seem to be long after encoding, you can only put 5 Chinese characters, haha
Reply

Use magic Report

0

Threads

32

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-1-16 10:45:02
| Show all posts
ValidateRequest = "false"
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-20 19:00:01
| Show all posts
When transmitting in the background: url="description.aspx?name="+Server.UrlEncode(myname.text);
            response.redirect(url);
JS transfer: .src = "AXXXX.aspx?ValueID=" + escape(node.Text);//Encode the parameters before passing them
When parsing in the background: Server.UrlDecode(this.Page.Request.QueryString["ValueID"]).ToString();
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-23 12:15:01
| Show all posts
up
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-23 12:30:01
| Show all posts
Encode with Server.UrlEncode(str)
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list