在我在codebhind中弹出javascript后写下Goto exit Immidiate时,下面的代码无效 [英] Below code is not working while i write the Goto exit Immidiate after i write javascript in codebhind for popup

查看:58
本文介绍了在我在codebhind中弹出javascript后写下Goto exit Immidiate时,下面的代码无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ClientScript.RegisterStartupScript(typeof(Page), "MessagePopUp", "<script language='javascript'>alert('This Header name is already exists !!');</script>");
                        goto Exit;

推荐答案

ClientScript.RegisterStartupScript需要页面回发以显示该警告。



和ClientScript.RegisterStartupScript在updatepanel中不起作用。
ClientScript.RegisterStartupScript needs to page postback to show that alert.

and ClientScript.RegisterStartupScript not works in updatepanel.


这篇关于在我在codebhind中弹出javascript后写下Goto exit Immidiate时,下面的代码无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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