按钮单击事件I完成所有过程更新值 [英] Button Click Event I Completed All The Process Update Values
本文介绍了按钮单击事件I完成所有过程更新值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
here i need confirmation message "are u sure want redirect ?" through javascript we need fire end of the button click event
推荐答案
在你的按钮点击事件中尝试这个(代码隐藏) 。
try this in your button click event (code behind).
string script = "if (confirm('are u sure want redirect?')) window.location = 'ListExhibitorDetails.aspx'; else window.location = 'ListBusinessDetails.aspx';";
Page.ClientScript.RegisterStartupScript(this.GetType(), "test", script, true);
这篇关于按钮单击事件I完成所有过程更新值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文