怎样让弹出提示框的时候背景也是可见的?
我有个【更新】按钮,点击后弹出【更新成功】提示,跳出提示框的语句是用 Response.Write("<Script>alert('修改成功!');</Script>");按钮的代码如下:
//更新数据库
protected void bt_UpdateDB_Click(object sender, EventArgs e)
{
string[] strSQLs;//字符串数组,用于保存查询语句
strSQLs = new string[lb_Trust_Major.Items.Count + 1];
strSQLs[0] = "delete from app_rel_FriendMajor where MasterMajorCode = '" + ddl_Main_Major.SelectedValue.ToString() + "'";
for (int i = 1; i < lb_Trust_Major.Items.Count + 1; i++)
{
strSQLs[i] = "insert into app_rel_FriendMajor (MasterMajorCode, TrustMajorCode) " +
" values ( '" + ddl_Main_Major.SelectedValue.ToString() + "', '" + lb_Trust_Major.Items[i - 1].Value.ToString() + "') ";
}
int n = Database.ExecuteSqls(strSQLs);
Response.Write("<Script>alert('修改成功!');</Script>");//11.12
}
但是这样的话在显示那个提示框的时候背景是一片白色的!
我该怎么做才能让他显示提示框的同时也能看到背景呢?
谢谢!!