Hi, I'm trying to pass a complex querystring to razor to be rendered in a template. The string contains tons of paramaturs, url id and several paramaters separated by an "&". The query string stops being read after the first "&" is there a way to pass the entire string through?
I'm reading the query string like this: var filingLink = Request.QueryString["filingLink"];
Pass complex link via querystring
Hi, I'm trying to pass a complex querystring to razor to be rendered in a template. The string contains tons of paramaturs, url id and several paramaters separated by an "&". The query string stops being read after the first "&" is there a way to pass the entire string through?
I'm reading the query string like this: var filingLink = Request.QueryString["filingLink"];
And the string looks something like this (truncated a bit for brevity): http://domain.com/filings/text.data?id=54321&vid=longstringoftext=&compId=12345
Hi Amir,
When you do this:
you're asking for the value of the filingLink parameter in the QueryString.
To get the full querystring, use the server variable
QUERY_STRING
, like this:Hope that helps,
/Chriztian
is working on a reply...