在JQuery弹出框中显示异常消息 [英] Display Exception messge in JQuery popup box
本文介绍了在JQuery弹出框中显示异常消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想在代码背后的异常中显示模态弹出窗口。如何从后面的代码中调用Jquery的dialog()方法。
Hi Everyone,
I want to display a modal pop up on exception in code behind. How can i call a Jquery's dialog() method from the code behind.
try
{
SqlCommand cmd = new SqlCommand("Insert into ModalForm values('" + tname.Text + "','" + tmobile.Text + "','" + temail.Text + "')", cnn);
if (cnn.State != ConnectionState.Open)
cnn.Open();
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
// How to call JQuery popup from here
}
推荐答案
查看类似文章:打开(显示)ASP.Net中服务器端(代码隐藏)的jQuery UI对话框弹出窗口 [ ^ ]。
- Amit
See a similar article : Open ( Show ) jQuery UI Dialog Popup Window from Server Side ( Code Behind ) in ASP.Net[^].
--Amit
这篇关于在JQuery弹出框中显示异常消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文