1.创建警告窗口

    private void CreatePopupWindow(string message)
    {
        string script = string.Format(@"<script language='javascript'>alert('{0}');</script>", message);
        ClientScript.RegisterStartupScript(this.GetType(), "startup", script);
    }