Suppose one Button is causing
PostBack
.
So, what you need to do is define...
OnClientClick = "return someJavaScriptFunction()"
in that
Button's Markup.
And in that
JavaScript
function, just return
false
.
function someJavaScriptFunction()
{
if(YourLogicIsSatisfied)
{
return false;
}
return true;
}