I have to open showModalDialog in the middle of the C# code execution and Continue the code depending on the condition
The code will be like below
protected void Button_Click(object sender, EventArgs e)
{
//some code execution
.
.
.
// need to open showModalDialog with yes & no button and wait for the click
string popupMessage = "<script language='javascript'>showmodal();</script>";
ClientScript.RegisterClientScriptBlock(this.GetType(), "pop", popupMessage);
if (yes)
{
// some code
}
else if (no)
{
// some code
}
} // End of Button click
Please help me how to do in JavaScript without Ajax
You should make ajax call for implementing this functionality.
ex.
AJAX Request using jquery :
AJAX Request using javascript :