void gridView_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                string id = DataBinder.Eval(e.Row.DataItem, "id").ToString();
                e.Row.Attributes.Add("style", "cursor:pointer");
                e.Row.Attributes.Add("onclick", string.Format("test('{0}',this)", id));    //调用前台的test
            }
        }
posted on 2007-07-17 15:01  萧佰刚  阅读(668)  评论(0编辑  收藏  举报