如何通过单击1个按钮来调用2个模式弹出控件. [英] How to call 2 modal popup controls by 1 button click.

查看:69
本文介绍了如何通过单击1个按钮来调用2个模式弹出控件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


单击删除按钮时,我正在显示模式弹出窗口.但现在我的要求是
当我单击删除"按钮时,必须显示一个模态弹出窗口,询问确定要删除吗?".
如果我单击确定"按钮,则必须显示另一个模态弹出窗口,询问删除原因?".我在第二个模式弹出窗口中有一个下拉列表.

如何在单击一次按钮时一个接一个地调用这两种模式弹出扩展器控件?

任何代码都是最欢迎的.........
谢谢.

Hi,
i am displaying a modal pop up when click on delete button. But now my requirement is
when i click delete button one modal pop up must display Asking "Sure to delete ?".
and if i click on ok button then another modal pop up must display asking " The Reason to delete ?". i have a drop down list in the second modal popup.

How to call this two modal pop up extender controls one by one on single button click ?

Any code is most welcome.........
Thanks .

推荐答案

取决于您要先打开的那个,您要先打开的那个,请单击按钮打开,然后单击页面上的另一个开口一的负载功能.


Depends which one you want to open first, the one u want to open first open it on the click of the button and the other one on the page load fuction of the opening one.


string strJavascript;
       strJavascript = "<script language='javascript'>";
       strJavascript = strJavascript + " window.showModalDialog('AddOccupantEdit.aspx?id=-100','text','status=0,toolbar=0,width=750,height=320');  </script>";
       Page.ClientScript.RegisterStartupScript(this.GetType(), "__close", String.Format(strJavascript));


这是C#winforms代码

This is a C# winforms code

if (MessageBox.Show("Sure to Delete ?", "Warning", MessageBoxButtons.YesNo,MessageBoxIcon.Warning) == DialogResult.Yes)
{
//Display your reason to delete dialog box
}


这篇关于如何通过单击1个按钮来调用2个模式弹出控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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