protected void btnSendSample_Click(object sender, EventArgs e)
    {
        ClientScriptManager csm = Page.ClientScript;
        Type cstype = this.GetType();
        if (!csm.IsStartupScriptRegistered(cstype, "OpenNewWin"))
        {
            //string ID = gvHistory.DataKeys[Int32.Parse(e.CommandArgument.ToString())].Value.ToString(); //"12";//DataKeys[e.RowIndex].Value.ToString();
            String cstext1 = "OpenNewWin(" + strID + ")";
            csm.RegisterStartupScript(cstype, "OpenNewWin", cstext1, true);
        }        如何让下面的代码在关闭对话匡后执行?
        bindHistory(strID);

    }