using System; using System.Collections; using System.Configuration; using System.Data; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; public partial class NOMuslim_Print : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { try { string xadmin = Session["admin"].ToString(); if (xadmin == "True") { grdtbl0.DataBind(); } else Response.Redirect("Home.aspx"); } catch { throw; } } protected void grdDocs_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //------------------ Have Document or Not --------------------- String Cer, Sex; Sex = (String)e.Row.Cells[5].Text; Cer = (String)e.Row.Cells[6].Text; if (Sex == "0") e.Row.Cells[5].Text = "ذكــر 男"; else e.Row.Cells[5].Text = "أنثى 女"; if (Cer == "1") e.Row.Cells[6].Text = "دكتوراه 博士"; if (Cer == "2") e.Row.Cells[6].Text = "بكالوريوس 大学"; if (Cer == "3") e.Row.Cells[6].Text = "الثانوية 高中"; if (Cer == "4") e.Row.Cells[6].Text = "أخرى 其它"; } } }