I am unable to validate JavaScript Events before navingating to server side click event.
For instance I have 5 Tabs , I need to Check a condition client side, before posting back. If the condition is not satisfied I need to avoid post back of the page. But I am unable to validate such Javascript method.
I tried using the below code on client side, but it not stopping the postback
============================================================
Please Help me out soon on this. I really struck up wit this :(.
--Srinath
For instance I have 5 Tabs , I need to Check a condition client side, before posting back. If the condition is not satisfied I need to avoid post back of the page. But I am unable to validate such Javascript method.
I tried using the below code on client side, but it not stopping the postback
============================================================
function
OnClientTabSelecting(sender,args)
{
var newTabValue = args.get_tab().get_value();
var oldTabValue = sender.get_selectedTab().get_value();
document.getElementById(
'<%=hdnCurrentTabid.ClientID%>').value=oldTabValue;
return false;
}
Please Help me out soon on this. I really struck up wit this :(.
--Srinath