<script type="text/javascript">
function validate()
{
if (document.getElementById("<%=tbFirstName.ClientID%>").value=="")
{
alert("Name Field can not be blank");
document.getElementById("<%=tbFirstName.ClientID%>").focus();
return false;
}
}
</script>
try this. this might work.