Loading...

HTTP parameter value contains an ampersand (&)

HTTP parameter value contains an ampersand (&)

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

Viewing 1 reply thread
  • Author
    Posts
    • #10678
      Wendy Snyder
      Wendy
      Participant

      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
      Rachit Vyas
      Participant

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

      Thanks,

      Rachit

       

Viewing 1 reply thread

You must be logged in to reply to this topic.