how to determine what Form to Submit


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: how to determine what Form to Submit

  1. #1
    RAJ Guest

    how to determine what Form to Submit


    Hi
    I have a form in ASP page.

    Form has combobox in it. Also have some other fields and Submit button
    field.

    I want to do following:

    If user selects the item from combobox, same page will be loded with some
    other stuff based on what item is selected (i am able to do this)

    If user click on Submit button, some other page will be loded

    I don't know how to determine what page to load depending on user event either
    item is selected from combo or Submit button is clicked.


    any suggestion?

    thanks in advance...


  2. #2
    Shweta Guest

    Re: how to determine what Form to Submit


    "RAJ" <vb_raj@yahoo.com> wrote:
    >
    >Hi
    > I have a form in ASP page.
    >
    > Form has combobox in it. Also have some other fields and Submit button
    >field.
    >
    > I want to do following:
    >
    > If user selects the item from combobox, same page will be loded with some
    >other stuff based on what item is selected (i am able to do this)
    >
    >If user click on Submit button, some other page will be loded
    >
    >I don't know how to determine what page to load depending on user event

    either
    >item is selected from combo or Submit button is clicked.
    >
    >
    >any suggestion?
    >
    >thanks in advance...
    >

    hello,
    use the following code for submit
    <input type=submit Value=submit onclick="{url for the page}">
    Same can be done for the combo box item



  3. #3
    shweta Guest

    Re: how to determine what Form to Submit


    There are two ways what i think can be possible i have not tried
    but are suggesting to do
    1)Use the following code
    <% file_name="f1.htm"%>

    <input type=Submit value=Submit onclick=get_file_name('<%=file_name%>')>

    <script language=javascript>
    function get_file_name(val)
    {
    document.write("<a href="+val+"</a>")
    }
    </script>
    Same you can try with other events.
    2)use submit button as an image not as an jpeg or anything just give it a
    look of
    button and in frontpage or dreamweaver it is possible then give the link
    to the
    specific page.

    if even it is not working please write me I will try another method
    bye


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center