<p>For example, I have an ASP.NET form that is called by another aspx:</p>

<pre><code>string url = "http://somewhere.com?P1=" + Request["param"];
Response.Write(url);
</code></pre>

<p>I want to do something like this:</p>

<pre><code>string url = "http://somewhere.com?P1=" + Request["param"];
string str = GetResponse(url);
if (str...) {}
</code></pre>

<p>I need to get whatever Response.Write is getting as a result or going to url, manipulate that response, and send something else back.</p>

<p>Any help or a point in the right direction would be greatly appreciated.</p>

```
```
WebClient client = new WebClient();
string response = client.DownloadString(url);
```
```