Button1.Attributes.Add("onclick",   "this.value='正在提交中,请等待……';this.disabled=true;"   +   this.GetPostBackEventReference(Button1));

 

于是根据这个写了个只能提交一次的控件:

防止重复提交_控件    public class ButtonSubmitOnce : Button
防止重复提交_前端 数据 数据库 编程语言_02防止重复提交_前端 数据 数据库 编程语言_03    
防止重复提交_前端 数据 数据库 编程语言_04{
防止重复提交_html_05        
private string _textonclick = "正在提交中,请等待……";
防止重复提交_html_05
防止重复提交_html_05        
protected override void Render(HtmlTextWriter writer)
防止重复提交_ide_08防止重复提交_ide_09        
防止重复提交_前端 数据 数据库 编程语言_04{
防止重复提交_html_05            
this.OnClientClick += "this.value=\"" + _textonclick + "\";this.disabled = true;" + Page.GetPostBackEventReference(this);
防止重复提交_html_05
防止重复提交_html_05            
base.Render(writer);
防止重复提交_前端 数据 数据库 编程语言_14        }

防止重复提交_html_05
防止重复提交_html_05        
public string TextOnClick
防止重复提交_ide_08防止重复提交_ide_09        
防止重复提交_前端 数据 数据库 编程语言_04{
防止重复提交_ide_08防止重复提交_ide_09            
set 防止重复提交_前端 数据 数据库 编程语言_04{ _textonclick = value; }
防止重复提交_前端 数据 数据库 编程语言_14        }

防止重复提交_前端 数据 数据库 编程语言_24    }


不知有没有其他办法,但这是我找到最好的了