摘要:
protected void Page_Load(object sender, EventArgs e) { this.Button1.Attributes["onclick"] = ClientScript.GetPostBackEventReference(Button1, "Click ") + ";this.disabled=true;"; }让页面在回发的时候脚本控制按钮不可用,如果报错的话,在.aspx页面第一行:%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_D 阅读全文