我怎样才能得到以下结果(无论是否点击):
单击按钮时:
//First I am checking validations
//Then I am checking if pay grade is being overridden from the business layer
//If it is overriden:
ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "confirm('You are overriding the existing pay grade. Do you want to Override ?');", true);
//If the user clicks Yes, more code to save new pay grade in the database is executed.
//Else nothing is done.
如果单击是,我想继续执行下面的代码,否则下面的代码不会执行