在弹出窗口上显示priview? [英] show priview on the popup window?
本文介绍了在弹出窗口上显示priview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我正在使用下面在我的页面上单击按钮时给出的这段代码,但未显示警告消息,任何人都可以引导我吗?
hello friends,
i am using this code which is given below on button click on my page but its not show the alert msg can any one guide me???
Page.ClientScript.RegisterClientScriptBlock(GetType(), "Javascript", "<script>alert('Record Added Successfully')</script>");
推荐答案
对我来说,此行工作正常.
提供一些代码,以便您获得正确的答案.
For me this line is working fine.
Provide some code so that you will get the correct answer.
http ://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx [ ^ ]
请参阅此链接
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx[^]
refer this link
尝试使用此链接
Try To use this one
ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "YOUR KEY", "YOUR SCRIPT", true);
或尝试一下.
首先将脚本添加到asp.net页的标题标签中
or Try this..
First of add your script to your asp.net page''s header tag
<script type="text/javascript">
function display(){
alert('Record Added Successfully');
}
</script>
然后在页面的pageload事件后面的代码中编写此代码..
then in code behind page''s pageload event write this..
btnAdd.Attributes.Add("onclick", "display();");
这篇关于在弹出窗口上显示priview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文