在asp.net服务器端上的消息框 [英] Message box on server side in asp.net
本文介绍了在asp.net服务器端上的消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有使用if-else条件的按钮单击处理程序事件.如果它运行到else语句,如何显示消息?
就像请满足要求!!
hey everyone,
i have button click handler event in which i am using if-else condition.How can i show a message if it runs to else statement?
Like please fill the requirements!!.
推荐答案
这将显示警报框
Page.RegisterStartupScript("a",< script> alert(" hiiiiiii);</script>");
this will give alert box
Page.RegisterStartupScript("a", "<script>alert(''hiiiiiii'');</script>");
这篇关于在asp.net服务器端上的消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文