- ClientScriptManager scriptMgr = Page.ClientScript;
- btnSave.Attributes.Add("onclick", "javascript:" +
- btnSave.ClientID + ".disabled=true;" +
- "document.body.style.cursor = 'wait';" +
- scriptMgr.GetPostBackEventReference(btnSave, string.Empty));
- //该片段来自于http://www.codesnippet.cn/detail/070120131392.html
来源: http://www.codesnippet.cn/detail/070120131392.html