Results 1 to 5 of 5

Thread: [2008] Pass data from static page to aspx form

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    592

    [2008] Pass data from static page to aspx form

    Code:
    <form id="formContact" name="formContact" action="submit.aspx" onsubmit="return validateContactForm();">
    <p>Full Name: <input id="txtName" type="text" style="width: 240px;" /> </p>
    <p><input id="btnSubmit" type="submit" value="Submit" style="width: 130px;" /></p>
    </form>
    And it submits to the submit.aspx but i cannot get the txtName value.

    I tried everything but seems that Request.Form("txtName") returns nothing no matter what ...

    Any idea? Thanks in advance

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    592

    Re: [2008] Pass data from static page to aspx form

    I get this error message:

    The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.


    Well, if it helps this is dedicated server with IIS7 (win2k8 server) which means that i can make the needed settings if needed.

    Thanks

  3. #3
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [2008] Pass data from static page to aspx form

    Interesting. I got this same error when doing posts to a directory inside of Visual Studio's server but changing to the IIS server for debugging fixed my issue. Are you sure you're using IIS?
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    592

    Re: [2008] Pass data from static page to aspx form

    Yes and it seems i resolved it. I just changed the AppPool and now it works like a charm. Have no idea why but, it must be DefaultAppPool.
    Thank you

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] Pass data from static page to aspx form

    Hmm, could it be because you were missing the method="POST"?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width