My task: In a website(my university website) when results are generated using my code automatically the roll number's will be incremented and results wil be stored in my database.i need to supply values for a textbox in the university website from my code.,im able to find the html input tag name(regno) for the textbox.,the problem is,the HTML page is using onSubmit event with return values(to validate the roll no entered in the textbox) and it is redirected to another page(the output results page).How to do i supply values to the onSubmit method (from my C# code)such that it returns "true"and i should be able to retireve the values from the output page also.pls help,i dont know where to start,or how to start.
the univ page code:
<SCRIPT language=JavaScript>
<!--
function checkregno()
{
if (window.RegExp)
{
strval=document.forms["result"]["regno"].value;
reExp=new RegExp("^\\d{14}$");
}
function dele(){
document.result.action="http://www.annauniv.edu";
document.result.submit();
}
//-->
</SCRIPT>
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=gray
onload="javascript:document.forms['result']['regno'].focus()">
<FORM name=result onSubmit="return checkregno();" action=/cgi-bin/result/resgrbarchpg.pl
method=post>
<INPUT maxLength=14 size=14 name=regno>
<INPUT onClick="return checkregno();" type=submit value=Submit>
<INPUT type=reset value=Clear name=clear>