很菜的一些小技巧。。

1 GridView中的添加删除提示

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)

    {

        if (e.Row.RowType == DataControlRowType.DataRow)

        {

            e.Row.Cells[1].Attributes.Add("onclick", "return confirm('你确定要删除吗')");

        }

    }

2web页面输出一个提示框

Response.Write("<script>alert('没有这个地区名称')</script>");

原文地址:https://www.cnblogs.com/learning/p/1310905.html