I have an application that serves SSRS reports. A given report is accessed in the following way:

```
https://reportserver.com/reportname

```

Upon clicking **View Report**, a postback is submitted to the report server with the user-defined parameters. I need to grab these user-defined parameters and parse them as a URL string.

**Desired result:** `https://reportserver.com/reportname?param1=foo&param2=bar`

I found [this doc](https://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.reportparameterseventargs.parameters.aspx) that gets me close to what I need. This method should allow me to grab all visible parameters and parse them myself, but I need **hidden parameters** as well.

How can I build this parameter string? We're using JavaScript/jQuery in the front end so it may be possible to grab this client-side before the POST, but I haven't found a way of doing this either.