在WebAsyncRefreshPanel控件里面的页面跳转和弹出提示

//页面跳转
    private void PageRedirect(string url, Infragistics.WebUI.Misc.WebAsyncRefreshPanel _WebAsyncRefreshPanel)
    {
        _WebAsyncRefreshPanel.Controls.Add(new LiteralControl("<script language='javascript'>window.location='" + url + "';</script>"));
    }

    //弹出提示
    private void showbox(string msg, Infragistics.WebUI.Misc.WebAsyncRefreshPanel _WebAsyncRefreshPanel)
    {
        string script = string.Empty;

        script = "<script type='text/javascript'>alert('" + msg + "');</script>";

        Infragistics.WebUI.Shared.CallBackManager.AddScriptBlock(Page, _WebAsyncRefreshPanel, script);
    }

你可能感兴趣的:(refresh)