I have following code. HTML + javascript.
how can I code in C# for this action?
I want to try it in the click event of asp.net button.
how can I do that?
<script type="text/javascript">
function submitForm(action){
if(!ok){
alert('Error submitting the form. Please enter a valid IP address.')
return false;
}
return true;
}
</script>
<form id="f1" action="http://localhost:1234/update" method="get" onsubmit="return submitForm();" accept-charset="UTF-8" title="Insert your message(s) here (one message per line).">
<textarea name="message" rows="5" cols="40">Write your message(s) here</textarea>
<br /><br />
Go to the complete details ...