Tagged: HTTP parameter
- This topic has 1 reply, 2 voices, and was last updated 8 years ago by Rachit Vyas.
- AuthorPosts
-
-
04/24/2017 at 6:00 pm #10678
WendyParticipantGreetings everyone,
I have an upload page that contains two HTTP parameters, used to populate metadata in the document library:
https://mysite.com/SitePages/RL_Upload.aspx?RLID=<%ID%>&RID=<%RID%>
RLID is always numeric, so there is no issue.
RID is a text field. When the value of RID contains an ampersand (&), the value is truncated since (I assume) SharePoint thinks the & is the start of another HTTP parameter.
For example, if RID = Q&A, the value that’s loaded into the library is Q.
Is there a way to configure <%RID%> so that the entire value including the &, (for example, Q&A), comes through?
Thank you.
-
05/03/2017 at 9:36 am #10680
Rachit VyasParticipantHi Wendy,
“&” is a reserved character which is used for the reserved purpose in the URL. You cannot use these character in the URL directly as a value.
You can use these type of characters by their respective encoded value only. For “&” url-uncode value is “%26” (ref:
http://www.eso.org/~ndelmott/url_encode.html
).Thanks,
Rachit
-
- AuthorPosts
You must be logged in to reply to this topic.