谁说后台写的就不能调用前台提示框了?你前台写个js方法 后台判断注册调用就是了ScriptManager.RegisterStartupScript(this,GetType(),"key","你的js",true);