显示消息框时出现Tabcontainer问题 [英] Tabcontainer problem when showing message box

查看:69
本文介绍了显示消息框时出现Tabcontainer问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







i有问题关于Tabcontainer.i我的页面有一个带有两个标签的tabcontainer。当我点击提交按钮时为了将数据插入数据库,然后显示一个消息框,那时我的tabcontainer消失,当我点击消息框确定按钮然后显示它。



和我使用了不同的updatepanel标签。



请帮帮我,错误是什么以及为什么会这样?



i尝试使用以下代码来显示消息框



ScriptManager.RegisterStartupScript(this,this.GetType(),alertscipt,alert('Recorded Updated succesfully') ,true);



ScriptManager.RegisterStartupScript(UpdatePanel1,typeof(string),alertscipt,alert('Recorded Updated Succesfully'),true);

Hi


i have problem regarding Tabcontainer.i have a tabcontainer with two tab in my page.when i click on submit button for insert data to database,then a message box is display and that time my tabcontainer is vanish and when i click on message box ok button then its display.

and i used different updatepanel for tab .

please help me, what is the error and why it is so?

i tried following code to display messagebox

ScriptManager.RegisterStartupScript(this, this.GetType(), "alertscipt", "alert('Recorded Updated Succesfully')", true);

ScriptManager.RegisterStartupScript(UpdatePanel1, typeof(string), "alertscipt", "alert('Recorded Updated Succesfully')", true);

推荐答案





你是对的,这是从服务器端调用javascript警报时发生的。



您可以做一件事,使用ajax控件工具包中的任何可用控件(如jquery或modelpopupextender控件)创建自己的弹出窗口。这是更好的选择。



第二个选项是使用pagemethod或jquery json方法来调用你的insert方法。并且在成功返回功能时,呼叫提醒消息。
Hi,

You are right, this happens when calling javascript alert from server side.

You can do one thing, create your own popup using any available controls like jquery or modelpopupextender control in ajax control toolkit. This is better option.

second option is use pagemethod or jquery json method to call your insert method. and in success return function, call alert message.


这篇关于显示消息框时出现Tabcontainer问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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