I have a query string like
www.google.com?Department=Education & Finance&Department=Health
I have tags li, and their query string looks like this:
li
Now the problem is that I am doing a NamevalueCollection and getting all the key values: this only gives me education, not finances .....
Any idea how to do this?
You need to encode your values ββby calling Server.UrlEncodebefore placing them in the URL.
Server.UrlEncode
If your values ββare in an array, you need to use a loop. If you need accurate instructions, you will need to show us your current code.
(&) URL-. , URL- www.google.com : 2 .
:
System.Web.HttpUtility.UrlEncode(string url)
URL.
URL. &, & . , URL-, .
&
Education & Finance + %20, & %26, Education%20%26%20Finance.
Education & Finance
+
%20
%26
Education%20%26%20Finance
, URL :
www.google.com?Department=Education%20%26%20Finance&Department=Health
Source: https://habr.com/ru/post/1734247/More articles:Can objects unwind before they are created on the stack? - c ++Mysql intelligent interpreter - mysqlsplit the line after some characters with preg_match - phpRecording a video stream in Android for AR - androidStreaming internet video in android - androidCreating a KeyDown event handler for label management - c #List of Java errors and warnings - javaWhat is a distributed platform, context, embedded systems? - distributed-computingWhy does this not work in PHP? - evalNo mapping for LONGVARCHAR in Hibernate 3.2 - javaAll Articles