警报信息显示控件 [英] alert msg showing controls

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

问题描述

 字符串 strs = " ;
ScriptManager.RegisterStartupScript(,GetType()," ,strs,解决方案

我从您的问题中假设您的模态弹出窗口"实际上只是表单上的面板,您可以根据自己的需要显示/隐藏该面板是否可以从代码隐藏或从javascript实现中获取.在这种情况下,您将必须通过代码隐藏(如果有回发)或从javascript(如果您选择使用的路线)来显式隐藏面板.


string strs = "alert('Patient detail updated successfully!')";
ScriptManager.RegisterStartupScript(this, GetType(), "ServerControlScript", strs, true);


when i use this script this will work fine but it will show my few panel controls that was associated with modulpopup ,so how to hide these panel without using visible false or should i change my script .
Thanks

解决方案

I''m assuming from your question that your "modal popup" is really just a panel on your form that you show/hide depending on whether you need it or not, either from code-behind or from a javascript implementation. If this is the case, you will have to explicitly hide the panel either by code-behind if there is a postback, or from the javascript if that is the route you have chosen to use.


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

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