protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { } }在这个事件中加上 (!IsPostBack) 试试