protected void ASPxGridView2_CustomButtonCallback(object sender, DevExpress.Web.ASPxGridViewCustomButtonCallbackEventArgs e)
 {
     if (e.ButtonID == "btnview3")
     {
         int     Gid = Convert.ToInt32(e.VisibleIndex.ToString());
         DataRow dr  = ASPxGridView2.GetDataRow(Gid);
         int     id  = Convert.ToInt32(dr["BonceID"].ToString());
         Response.Redirect("~/HR/ViewDeduction.aspx?id=" + id);
     }
 }
Exemple #2
0
 protected void ASPxGridView1_CustomButtonCallback(object sender, DevExpress.Web.ASPxGridViewCustomButtonCallbackEventArgs e)
 {
     if (e.ButtonID == "btnview")
     {
         int     Gid = Convert.ToInt32(e.VisibleIndex.ToString());
         DataRow dr  = ASPxGridView2.GetDataRow(Gid);
         int     id  = Convert.ToInt32(dr["id"].ToString());
         Response.Redirect("~/StudentAfair/ViewCourse.aspx?id=" + id);
     }
     if (e.ButtonID == "btnDoc")
     {
         int     Gid = Convert.ToInt32(e.VisibleIndex.ToString());
         DataRow dr  = ASPxGridView2.GetDataRow(Gid);
         int     id  = Convert.ToInt32(dr["id"].ToString());
         Response.Redirect("~/StudentAfair/AddDocuments.aspx?id=0&&CourseID=" + id);
     }
 }