【发布时间】:2013-10-16 09:36:45
【问题描述】:
我有一个页面,它接受用户的输入,然后通过单击按钮处理他的请求。 在此按钮单击事件上,我需要验证他输入的输入,并在某些情况下显示确认对话框。 如果他点击是,那么我需要执行进一步的操作,否则返回。
我尝试过使用
Page.ClientScript.RegisterStartupScript(this.GetType(), Constants.OpenConfirm, "confirm('Data Already Exists, do you Wish to Overwrite the existing record?')", true);
但无论我单击是还是否,它都会执行进一步的操作。
已经尝试使用从服务器端调用的 JavaScript 方法,但也没有成功。
【问题讨论】:
标签: javascript asp.net