Hi All,
I have to call Confirm message when Editbutton click on GridEditCommandColumn.
that is, In ItemCommand event ->CommandName=="Update" -> I will check one condition, if that will be true means , it will show a javascript confirm message.
if (IsTrue==true)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "javascript::if(!confirm(Delete the row?));", true);
if user click ok
{
//my code
}
else
return;
}
how to do this?
I have to call Confirm message when Editbutton click on GridEditCommandColumn.
that is, In ItemCommand event ->CommandName=="Update" -> I will check one condition, if that will be true means , it will show a javascript confirm message.
if (IsTrue==true)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "javascript::if(!confirm(Delete the row?));", true);
if user click ok
{
//my code
}
else
return;
}
how to do this?