-Edited-
Hello,
I have a page which contains two forms,I would like to send only the second form using post method.
The form has a valid function which checks valid date, email , etc.
I would like to send the second form without leaving the page , only to send the second form.As far as I know it is doable with AJAX but I'm not sure how to execute it.
Here is an example of the code
Client Side
<body>
<div> ....
<form id='f1'>....</form>
<script> //validation functions, at the end of the main validation function there is a //code that submits the second form , the one i intend to send.
</script>
<form id='f2' action='http://mysite/goToMyHandler.cs...>
...some input controls...
<input type='button' value='send' onclick='executeValidation();'>
</form>
</body>
Server Side
myHandler.cs:
...saves data from
Response.Write('Form has been successfully sent');
Thanks