javascript with ASP.NET question
When i click the button it validates and pops up the javascropt page but when i click OK it doesn't retain me on that page it STILL goes to the page
"Search.aspx" and then it displays the search result which i don't want .What i want is for it to retain on the page if no value is typed in..
Any ideas:-
<script language="javascript">
function isValidate()
{
//valid = true;
if (document.frmSearch.txtSearch.value == "")
{
alert ("Insert a Value.");
// valid = false;
}
//return valid;
}
</script>
</table>
<form method="post" action="Search.aspx" name="frmSearch" id="frmSearch">
<td align="left">
<input type="text" ID="txtSearch" SIZE="20">
</td>
<td align="left">
<input type="button" id="image1" alt="Click to Search" onclick="return isValidate();" value="Search">
</td>
</form>

