是不是私有方法的问题,好像私有方法不能控制页面上的东西,改成protected的试试
就写 sad();试一试。
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { sad(); } }