很菜的一些小技巧。。

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>");

posted on 2008-10-14 16:19  IT00000  阅读(114)  评论(0编辑  收藏  举报

导航