|
Upstairs is not the same as wc.Attributes.Add ("onclick", "return confirm ('Are you sure to confirm the current operation?')"); The same, the OnClick event of the button that will be executed in this way,
I want to achieve this in the button event:
if ()
{
if (MessageBox.Show ("Are you sure!", "?", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
}
}
else if ()
{
if (MessageBox.Show ("Are you sure?", "?", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
}
}
But the above method is not very good, is there any other method |
|