在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);
    }

posted on 2009-02-06 11:03  myx  阅读(514)  评论(1编辑  收藏  举报