c# - Plus sign in query string? -
i have webapp created using c# , asp.net. placed parameter value in querystring plus(+) sign. plus sign disappear.
how can include plus sign(+) in query string without disappearing?
here found same question , according it, have used server.urlencode(myqerystring)
, time of decoding server.urldecode(myqerystring)
how resolves space
here watch window
1) querystring after server.urlencode() 2) querystring after server.urldecode()
notice space between s
, r
should +
. new web development , read other answers says use urlencode , decode
giving same issue before doing wrong , yes query string automatically generated. have no control on it.
there other hack replace " " or "%2b" "+" go if dont find way. there way this. thanks.
the answer link mentions using server.urlencode, not server.urldecode. when read request.querystring automatically decodes string you. doing manually second time corrupting , why you're getting space.
Comments
Post a Comment