Hi all,
Hope that somebody can help me with this. I am working on a project, which has Javascript and codebehind mixed. What I need to do is associate a button to a javascript function, which I am already doing and execute a code behind sub, if a condition within
the javascript is met. See code below.
function btnSearch_Click()
{
var vendorCtrl = document.getElementById("myControl");
if (CheckIfEmpty(vendorCtrl) == true) {
vendorCtrl.focus();
return;
}
else
{
//Call the code behind sub
}
}
Any help will be appreciated.
Thanks in advance.
Go to the complete details ...