如何使用Javascript在C#.Net中创建自动警报消息? [英] How Do I Create Automatic Alert Message In C#.Net Using Javascript?

查看:68
本文介绍了如何使用Javascript在C#.Net中创建自动警报消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii,

如何在打开特定页面时自动弹出警告消息?

警告消息用于识别到达其库存的产品通过比较sql server中的两列来限制。

就像当用户更新产品页面中的产品数量并且金额等于或小于库存限制时,然后在用户刷新页面之后,警报消息将自动出现。例如,库存限制为100,然后用户更新产品数量为90然后刷新页面后警报消息将出来。



请给我解决方案问题。谢谢

hii,
how can i make automatic pop up alert message when i open a particular page?
the alert message is used to identify the products that reached its stock limit by comparing both columns in sql server.
it is like when the user update the amount of product in product page and the amount is equal or less than the stock limit then after the user refresh the page then the alert message will be come out automatically. for example, the stock limit is 100, then user update product amount to 90 then after refreshing the page the alert message will come out.

please give me solution for this problem. thank you

推荐答案

试试这个:



Try this:

<script language="javascript" type="text/javascript">
function IsValidStockValue()
{
var uid;
var temp=document.getElementById("<%=txtValue.ClientID %>");
uid=temp.value;
if(uid > "Stock limit value")
{
alert ("Please Enter Actual Stock Value.");
return false;
}
else
{
return true;
}
}
</script>


这篇关于如何使用Javascript在C#.Net中创建自动警报消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆