I am having some problems with my code as I cant do this following in VB.NET or C# because there is no form1.submit() function in VB.NET or C#???
<script language="javascript">
function valSubmit(){
varMyReg = document.form1.lstCountry.options [document.form1.lstCountry.selectedIndex].value;
varNewReg = varMyReg.substring(0, 3);
document.form1.hdnRegion.value = varNewReg;
document.form1.action = "http://now.eloqua.com/e/f2.aspx"
document.form1.submit();
return true;
}
</script>
Why is this or how would I be able to do this in VB.NET or C#?