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 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnreturn_Click(object sender, EventArgs e) { Response.Redirect("NOMuslim_Print.aspx"); } protected void grdtbl0_SelectedIndexChanged(object sender, EventArgs e) { Response.Redirect("NOMuslim_Edit.aspx?id=" + grdtbl0.SelectedRow.Cells[0].Text.ToString()); } 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 = "أخرى 其它"; } } }