HTTP parameter value contains an ampersand (&)

Home Forums QuickApps Forum HTTP parameter value contains an ampersand (&)

This topic contains 1 reply, has 2 voices, and was last updated by  Rachit Vyas 1 year, 10 months ago.

  • Author
  • #10678


    Greetings 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.

  • #10680

    Rachit Vyas

    Hi 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).




You must be logged in to reply to this topic.