警报框不来 [英] alert box not coming

查看:82
本文介绍了警报框不来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我包含scriptmanager,updatepanel,contenttemplate inn aspx页面(如警告框)后,所有这些都没有显示时,我遇到了问题.
这是我的代码

Hi all,

I got problem when i included scriptmanager,updatepanel,contenttemplate inn aspx page like alert box is not showing after inclusion of all these.
Here is my code

RegisterStartupScript(alert(''Please Enter The Father Name'')</script>");



返回false
返回false;

如果您现在就给我解决方案.



return false
return false;

Give me the solution if u now please.

推荐答案

尝试一下,
Try this,
ScriptManager.RegisterStartupScript(this, this.GetType(), "msg", "alert(''Please Enter The Father Name'');", true);


听起来您遇到了JavaScript问题.加载页面时,请查看浏览器的底部,看看JavaScript是否引发任何异常.如果这阻止了页面甚至无法到达警报框,也不会令我感到惊讶.
It sounds like you are experiencing a JavaScript issue. Take a look at the bottom of your browser when you load the page, and see if the JavaScript is throwing any exceptions. It wouldn''t surprise me if this was preventing the page from even getting near your alert box.


这篇关于警报框不来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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