Using “&” and “+” in Querystring

前端 未结 4 400
礼貌的吻别
礼貌的吻别 2021-01-27 09:18

In call the following URL in Javascript.

var par = \"Participant.aspx?ID=\" + Id + \"&NAME=\" + Name+ \"&FIRSTNAME=\" + Firstname;

Some

4条回答
  •  隐瞒了意图╮
    2021-01-27 10:24

    You can use predefined UrlEncode and UrlDecode methods. These methods will help you out to pass special characters in query strings. Have a look at these examples.

    UrlDecode and UrlEncode
    hope this helps you.

提交回复
热议问题