Posted on: 10/30/2013 7:11:12 PM | Views : 768

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 ...