-
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...
-
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
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|