您的位置:首页 > 大数据 > 人工智能

how can display please wait message on the button

2007-10-18 16:12 447 查看
This can easily be achieved by using the ClientScript.GetPostBackEventReference method.

this.Btn_Upload.Attributes.Add("onclick", "this.value='Please wait..'; this.disabled=true;" +

ClientScript.GetPostBackEventReference(this.Btn_Upload,""));

The GetPostBackEventReference injects the __doPostBack method and

also the hidden fields that hold the event target and event arguments.

This is a useful technique when

uploading large files and during the process disabling the button control.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐