本文介绍了没有页面刷新的警报框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有2种类型的javascript对话框可用:
1.警报:其中只有确定"按钮.
2.确认:具有确定"和取消"
但是v如何在asp.net
There are 2 types of javascript Dialog available:
1. alert : which have only OK button in it.
2. confirm : which has Ok and Cancel
but how v can use this without page refresh in asp.net
推荐答案
ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "test", "alert(''welcome'');");
页面加载,
on page load,
Page.ClientScript.RegisterStartupScript(typeof(Page), "MyScript", "alert(''welcome'');");
就像您应该改善问题一样
same as you should improve the question
这篇关于没有页面刷新的警报框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!