Posted on: 9/15/2015 6:09:26 AM | Views : 785

code: 
<asp:TextBox ID="txtbox" runat="server".......AutoPostBack="true" OnTextChanged="txtserialnoseach_TextChanged"></asp:TextBox>

protected void txtserialnoseach_TextChanged(object sender, EventArgs e) {
if (ds.Tables[0].Rows.Count == 0) {
ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "alert('Not Available.');", true);
---- then open a new window ------- } else {
}
}

Go to the complete details ...