POSTING A FORM USING onchange

Discussion in 'ASP .Net' started by Brendan Vogt, Aug 28, 2003.

  1. Brendan Vogt

    Brendan Vogt Guest

    I have an ASP file that loads the various provincess from my province
    table into a combo box. When the user selects a province, it then reads
    in all the associated regions for that province into another combo box.
    The name of this file is AddProperty.asp

    Here is my form section...
    <form name="ProvinceForm" id="ProvinceForm" method="post"
    action="AddProperty.asp">

    Here is my <select> section...
    <select name="SelectProvince" onchange="document.ProvinceForm.submit();"
    class="INPUTFIELD1">

    I can't seem to find out what is wrong, can any one please help?

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Brendan Vogt, Aug 28, 2003
    #1
    1. Advertising

  2. Try posting this question to the ASP newsgroup. This is the ASP.Net
    newsgroup.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    The more I learn, the less I know.

    "Brendan Vogt" <> wrote in message
    news:...
    > I have an ASP file that loads the various provincess from my province
    > table into a combo box. When the user selects a province, it then reads
    > in all the associated regions for that province into another combo box.
    > The name of this file is AddProperty.asp
    >
    > Here is my form section...
    > <form name="ProvinceForm" id="ProvinceForm" method="post"
    > action="AddProperty.asp">
    >
    > Here is my <select> section...
    > <select name="SelectProvince" onchange="document.ProvinceForm.submit();"
    > class="INPUTFIELD1">
    >
    > I can't seem to find out what is wrong, can any one please help?
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    Kevin Spencer, Aug 28, 2003
    #2
    1. Advertising

  3. Brendan Vogt

    Leon Jollans Guest

    document.forms['ProvinceForm'].submit();

    ?


    "Brendan Vogt" <> wrote in message
    news:...
    > I have an ASP file that loads the various provincess from my province
    > table into a combo box. When the user selects a province, it then reads
    > in all the associated regions for that province into another combo box.
    > The name of this file is AddProperty.asp
    >
    > Here is my form section...
    > <form name="ProvinceForm" id="ProvinceForm" method="post"
    > action="AddProperty.asp">
    >
    > Here is my <select> section...
    > <select name="SelectProvince" onchange="document.ProvinceForm.submit();"
    > class="INPUTFIELD1">
    >
    > I can't seem to find out what is wrong, can any one please help?
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    Leon Jollans, Aug 28, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Baker

    WebClient form Posting with form name?

    Jeff Baker, Aug 28, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    784
    John Saunders
    Aug 29, 2003
  2. alanb
    Replies:
    2
    Views:
    575
    alanb
    Apr 23, 2004
  3. Rob Meade
    Replies:
    0
    Views:
    443
    Rob Meade
    Dec 1, 2004
  4. AmitKu
    Replies:
    7
    Views:
    582
    John Timney \(MVP\)
    Jan 8, 2007
  5. Noah

    Hot Swap using Onchange Form

    Noah, Apr 12, 2004, in forum: Javascript
    Replies:
    1
    Views:
    128
    Matt Kruse
    Apr 12, 2004
Loading...

Share This Page