Issue with .post() not reading properly
<p>So I have a little linker that I am trying to make work, when the user enters their username and password it will connect to this site without actually leaving page but having some difficulty doing this.  I am using the .post() in jquery to send over to a aspx.page.</p>

<p>When I hit submit I get sent to the site and I don't want that, plus It wont sign in. </p>

<p>Code -</p>

<pre><code>&lt;div class="linkdimesAccount"&gt;



                    &lt;form name="aspnetForm" method="post" action="http://1betvegas.com/default.aspx" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_MainContent_ctlLogin_BtnSubmit')" id="aspnetForm" style="margin: 0 0 0 0;"&gt;
            &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;
             &lt;div&gt;
            &lt;input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value=""&gt;
            &lt;input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value=""&gt;
            &lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="eYjk1H7gGdxNJmuevBY9L0vo1lS2NWgmApCJFEQznQr+AwZaPf/hYV4iGSnPCSknyHjESN/BgHueeChVuGgmN4wtWFCdUaYPJRItirNF0nIBHe9Q"&gt;
            &lt;/div&gt;
            &lt;script src="/WebResource.axd?d=FrT3YL7-WvrI_DKD4vsDo2d0Al_8j_u_HUym76C9Z5ggdJlIe1yu5cWI_jZDYcizjTU0SkefrocS8ATa0&amp;amp;t=634604245351482412" type="text/javascript"&gt;&lt;/script&gt;
            &lt;div&gt;

                &lt;input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="yepc3zJ4Kjr5ru/aXm+s9SqYXyFoM+cwIlWPI69lDMnO4eybZJ1cM1pfzowM47Ggezne5505JNUx/VGe3XO8OCmvZnghqv8ZCuJm+yffjs4inz2n6ctjK/0F/qER0ARSznB8iJsMIZ7HxPXA/Stv+0ubH0U="&gt;
            &lt;/div&gt;
            &lt;h2&gt;Link your 5dimes account&lt;/h2&gt;

                &lt;table&gt;
                    &lt;tr&gt;
                    &lt;?php
                    if ($dimesaccount == 1){
                    echo "&lt;h2 style='color:red;'&gt; Please note your account is already linked.  If password or other information has changed please re-enter your username and password";
                    }
                    ?&gt;
                        &lt;td&gt;
                        Username:
                        &lt;/td&gt;
                         &lt;td&gt;
                            &lt;input name="ctl00$MainContent$ctlLogin$_UserName" type="text" size="15" id="ctl00_MainContent_ctlLogin__UserName" accesskey="u" tabindex="60" class="login_input"&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                     &lt;td&gt;
                        Password:
                        &lt;/td&gt;
                    &lt;td&gt;
                        &lt;input name="ctl00$MainContent$ctlLogin$_IdBook" type="hidden" id="ctl00_MainContent_ctlLogin__IdBook"&gt;
                        &lt;input name="ctl00$MainContent$ctlLogin$Redir" type="hidden" id="ctl00_MainContent_ctlLogin_Redir" value="wager/welcome.aspx"&gt;
                        &lt;input name="ctl00$MainContent$ctlLogin$_Password" type="password" size="15" id="ctl00_MainContent_ctlLogin__Password" accesskey="p" tabindex="61" class="login_input"&gt;
                    &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                    &lt;td&gt;
                        &lt;input type="submit" name="ctl00$MainContent$ctlLogin$BtnSubmit" value="Link" id="ctl00_MainContent_ctlLogin_BtnSubmit" class="login_input" style="text-transform: uppercase;"&gt;
                    &lt;/td&gt;
                    &lt;/tr&gt;

                &lt;/table&gt;


        &lt;/div&gt;&lt;!-------.linkdimesAccount ------&gt;
        &lt;/form&gt;
        &lt;div id="result"&gt;&lt;/div&gt;
        &lt;script&gt;
  /* attach a submit handler to the form */
  $("#aspnetForm").submit(function(event) {

    /* stop form from submitting normally */
    event.preventDefault(); 

    /* get some values from elements on the page: */
    var $form = $( this ),
        term = $form.find( 'input[name="__EVENTTARGET"]' ).val(),
        term1 = $form.find( 'input[name="__EVENTARGUMENT"]' ).val(),
        term2 = $form.find( 'input[name="__VIEWSTATE"]' ).val(),
        term3 = $form.find( 'input[name="ctl00$MainContent$ctlLogin$_UserName"]' ).val(),
        term4 = $form.find( 'input[name="ctl00$MainContent$ctlLogin$_IdBook"]' ).val(),
        term5 = $form.find( 'input[name="ctl00$MainContent$ctlLogin$Redir"]' ).val(),
        term6 = $form.find( 'input[name="ctl00$MainContent$ctlLogin$_Password"]' ).val(),
        term7 = $form.find( 'input[name="ctl00$MainContent$ctlLogin$BtnSubmit"]' ).val(),

        url = $form.attr( 'action' );

    /* Send the data using post and put the results in a div */
    $.post( url, { s: term, s: term1, s: term2, s: term3, s: term4, s: term5, s: term6, s: term7 },
      function( data ) {
          var content = $( data ).find( '#content' );
          $( "#result" ).empty().append( content );
      }
    );
  });
&lt;/script&gt;
</code></pre>

<p>Thanks for the help!</p>
