I have a javascript checking on a search button which is used to check if the
dummy value is inputted before the search button is clicked.
===============================================
butSearch.Attributes.Add("onclick", "if (document.forms[0],txt_dummy.value
== '') alert('Please input dummy number.');")
==========================================
the button control must be runat server as i'll need to do a sqldb search
after the dummy value is inputted.
================================================
Private Sub butSearch_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butSearch.Click
================================================
so that is the button i'm using
================================================
<asp:button id="butSearch" runat="server" Width="76px"
Text="Submit"></asp:button>
================================================
Any idea to stop the server postback action after the javascript checked an
error ?
pls help