-Modified-
Greetings,
I am facing a situation where I need to post only the second form on a page that contains two forms. The second form has a function for validating data such as date, email, etc.
My goal is to send the second form without reloading the page, using the post method. I think this can be achieved with AJAX, but I am unsure about the implementation.
Below is a sample code snippet:
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');
Thank you