使用ajax之后下载时需要加入的语句

12/14/2009来源:Ajax教程人气:6256

    PRotected void Page_Load(object sender, EventArgs e)
    {
        ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(ImageButton1/*下载按钮的ID*/);
    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        UpdownAndUpFileMeiliao.FileDownLoad("ceo.doc");
    }