Dear All,
i have used the ontextchanged to check the textbox condition, is it possible to use setfocus to keep looping check the textbox condition until it change correctly, then only able to go next textbox.
thank you
<asp:TextBox ID="Inv_Qty" runat="server" ForeColor="blue" AutoPostBack="true" OnTextChanged = "CheckQTY_TextChange"></asp:TextBox>
protected void CheckQTY_TextChange(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(Inv_Qty.Text) || Convert.ToInt32(this.Inv_Qty.Text.Trim()) < 0)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "Message", "alert('Invalid Input,Not allow 0 or negative number. Please check again!!')", true);
}
}