Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 .
Posted
Updated 8-Aug-11 19:09pm
v3

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.


XML
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));
 
Share this answer
 
This is a C# winforms code

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900