ClientScript.RegisterStartupScript(this.GetType(), "message", "alert('Please select product.');", true);
shameer ali shaik
if (dt1.Rows.Count>0) { Response.Redirect("shoppingcart.aspx"); } else { Response.Write("<script>alert('Hello');</script>"); }
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
ScriptManager.RegisterStartupScript( this, typeof(Page), "Alert", "<script>alert('Please select product')</script>", false);
Mark as Answer if it helps you Thanks&Regards Aswini Aluri
Login to post response