if (Page.IsPostBack) { SqlConnection connection = new SqlConnection("Data Source=MELINA_YEO-VAIO; Initial Catalog=InventorySystem; Integrated Security=True"); connection.Open(); SqlCommand abc = new SqlCommand("Select case when (P_Amount <= SafetyStockamount) then 'Limit stock has been reached' end as Alert from Product"); Page.RegisterStartupScript("ScriptDescription", "<script type=\"text/javascript\"> alert('Limit stock has been reached');</script>"); }
<script type="text/javascript"> alert('Limit stock has been reached!'); </script>
string jScript; jScript = "<script>alert('Limit stock has been reached.')</script>"; this.Page.RegisterStartupScript("keyClientBlock", jScript);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)