Calling Javascript on a page programmatically (in c#) and then submitting it back to the server
<p>I need to request a page (I'm using httpwebrequest at the moment), call some javascript ( e.g</p>

<p>function selected(id) {
        document.getElementById("selected").value = id;
      }</p>

<p>and then submit that back to the server . . . is this possible?</p>

<p><strong>EDIT</strong></p>

<p>Sorry for the vagueness.</p>

<p>The page I'm trying to interface with is already 100% working, all I need to do is find a way to trick the server into thinking that someone has loaded up the page, caused a piece of jScript to be run, and submit it back to the server, like a faux user. I'm trying to use the embedded webBrowser on a winForm at the moment, it's easiest to do it this way because the code that waits to be told when to make this request is already written, it just needs to be able to simulate the squishy human that's not in the middle.</p>

<p>Incase you can't tell I'm currently learning javascript so forgive me if I'm not too sure with something basic ^_^</p>
