using javascript to auto login into a asp.net website

I have the account for this website, I tried to auto login and track the package.
http://cc.khdispatch.com/ccweb/login.aspx

the code below doesn't work.
Could anyone help?
Thanks
-------------------------------------------------------------------------
    <!doctype html>
    <!-- saved from url=(0014)about:internet -->

    <html>
    <title>Steve Nash Sport Club Autologin</title>
    </head>
    <body>
    <form id="Form1" name="Form1" method="post"    action="http://cc.khdispatch.com/ccweb/login.aspx">

        <INPUT  NAME="AccNo" VALUE="">
        <INPUT NAME="UserID" VALUE="">
        <INPUT  NAME="Passwd" VALUE="">
                        </form>
  <script>document.Form1.WebForm_OnSubmit();</script>      
  </body></html>
HemlockPrintersAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Russ SuterSenior Software DeveloperCommented:
attach the Javascript code to the click event of an input type="button" instead of the form submit handler. You may also need to add return false to the click event handler to prevent postback.
Dave BaldwinFixer of ProblemsCommented:
You are missing at least 5 hidden input values.  Those values are generated each time that page is requested.  So even if you include those values, you have to read/load that page first and then submit all of the values.  There is also javascript on that page and I can't tell what it is used for.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HemlockPrintersAuthor Commented:
Thanks for your help.
Could you please write the code? thanks
Dave BaldwinFixer of ProblemsCommented:
No, that would be an application project that I don't have time for and that I don't think is going to work.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.