title: C# and links to JS functions
body: <p>I want to create an application for WP8 that shows the content of a web page. I'm not writing the code yet, but but i know that i can take the page content using xpath. My problem is that the content i want to take is not in a single page. I have to press the "Next" button to go to the next page. The code for the button is this.</p>
  
  <pre><code>&lt;td class="pager-next" style="padding:0;margin:0;"&gt;
         &lt;a id="ctl00_ContentPlaceHolder1_LinkButton2" class="buttondiego buttondiego_small buttondiego_arrow" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$LinkButton2','')"&gt;&lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>And this is the JS function in the header:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  var theForm = document.forms['aspnetForm'];
  if (!theForm) {
      theForm = document.aspnetForm;
  }
  function __doPostBack(eventTarget, eventArgument) {
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
          theForm.__EVENTTARGET.value = eventTarget;
          theForm.__EVENTARGUMENT.value = eventArgument;
          theForm.submit();
      }
  }
  //]]&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Is it possible to go to the next page with my code? How should i do?</p>