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 WordTranslate_Search : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnreturn_Click(object sender, EventArgs e) { grdtbl0.DataBind(); } protected void grdDocs_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //------------------ Have Document or Not --------------------- String Month = (String)e.Row.Cells[1].Text; if ((Month == "01") || (Month == "1")) e.Row.Cells[1].Text = "محرم"; else if ((Month == "02") || (Month == "2")) e.Row.Cells[1].Text = "صفر"; else if ((Month == "03") || (Month == "3")) e.Row.Cells[1].Text = "ربيع الأول"; else if ((Month == "04") || (Month == "4")) e.Row.Cells[1].Text = "ربيع الأخر"; else if ((Month == "05") || (Month == "5")) e.Row.Cells[1].Text = "جمادي الأول"; else if ((Month == "06") || (Month == "6")) e.Row.Cells[1].Text = "جمادي الأخر"; else if ((Month == "07") || (Month == "7")) e.Row.Cells[1].Text = "رجـــب"; else if ((Month == "08") || (Month == "8")) e.Row.Cells[1].Text = "شعبــان"; else if ((Month == "09") || (Month == "9")) e.Row.Cells[1].Text = "رمضــان"; else if (Month == "10") e.Row.Cells[1].Text = "شـــوال"; else if (Month == "11") e.Row.Cells[1].Text = "ذو القعدة"; else if (Month == "12") e.Row.Cells[1].Text = "ذو الحجة"; else e.Row.Cells[1].Text = "لم نتمكن من القراءة"; } } }