///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { /*** Fill Session ************************************/ FormSession.FillSession("Config", pageDiv); /*** Fill Session ************************************/ if (!Page.IsPostBack) { pnlMain.Attributes.Add("onkeypress", "javascript:return DefaultButton(event,'" + btnSave.ClientID + "');"); MainMasterPage.ShowTitel(General.Msg("E-mail settings", "إعدادات البريد الإلكتروني")); if (!FormSession.getPerm(new string[] { "IEml", "UEml" })) { Response.Redirect(@"~/Login.aspx"); btnSave.Enabled = false; } else { btnSave.Enabled = true; } UIDataEnabled(true); ViewState["CommandName"] = "NOT"; PopulateUI(); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Employees", pageDiv); // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { if (!FormSession.getPerm("SEmployees")) { Response.Redirect(@"~/Login.aspx"); } MainMasterPage.ShowTitel(General.Msg("Employees History", "سجلات الموظفين")); Fillddl(); DataLang(); if (!FormSession.getPerm("ICrd")) { grdData.Columns[16].Visible = false; } } } catch (Exception e1) { } }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Employees", pageDiv); // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { txtEmpIDSearch.Enabled = FormSession.getPerm("VFPEmp"); btnSearchDetails.Enabled = FormSession.getPerm("VFPEmp"); MainMasterPage.ShowTitel(General.Msg("Employees FingerPrint", "بصمات الموظفين")); if (FormSession.getPerm("VFPEmp")) { hfdConnStr.Value = ConfigurationManager.ConnectionStrings["constring"].ConnectionString.Replace("\\", "...."); hfdLoginUser.Value = FormSession.LoginUsr.Replace("\\", "...."); hfdLang.Value = FormSession.Language; string ID = hfdConnStr.Value + "," + hfdLoginUser.Value + "," + hfdLang.Value; ClientScript.RegisterStartupScript(this.GetType(), "key", "javascript:Connect('" + ID + "');", true); } } } catch (Exception e1) { DBFun.InsertError(FormSession.PageName, "PageLoad"); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { //---Common Code ----------------------------------------------------------------- // FormSession.FillSession("Config", pageDiv); //---Common Code ----------------------------------------------------------------- // MainMasterPage.ShowTitel(General.Msg("institution Setting", "إعدادات المنشأة")); if (!FormSession.PermUsr.Contains("U" + MainPer)) { Response.Redirect(@"~/Login.aspx"); } btnSave.Enabled = FormSession.PermUsr.Contains("U" + MainPer); btnSave.Text = General.Msg("Save", "حفظ"); if (!IsPostBack) { PopulateUI(); } if (IsPostBack) { imgLogo.PopulateImage("Logo"); } } catch (Exception e1) { } }
protected void Page_Load(object sender, EventArgs e) { Log log = MainMasterPage.InitPage(this); // ucArticles.InitControl(ArticleType.Article, 3, false); try { ucPositions.InitControl("Positions", 8, false); Article article = null; using (var conn = Global.CreateConnection()) { article = Article.GetArticle(conn, "Default"); if (article != null) { ArticleParam.GetArticleParams(conn, article.Id, sd); } } // ucDigests.InitControl(ArticleType.Digest, 2, false); } catch (Exception ex) { log.Exception(ex); } }
protected void Page_Load(object sender, EventArgs e) { log = MainMasterPage.InitPage(this); int forumTopicId = RequestUtils.GetForumTopicId(this); this.SqlDataSource1.SelectParameters["ForumTopicId"].DefaultValue = forumTopicId.ToString(); try { string cmdText = "SELECT Forums.Id AS ForumId, Forums.Name AS ForumName, ForumTopics.Name AS ForumTopicName FROM Forums INNER JOIN ForumTopics ON Forums.Id = ForumTopics.ForumId WHERE (ForumTopics.Id = @ForumTopicId)"; using (GmConnection conn = Global.CreateConnection()) { GmCommand cmd = conn.CreateCommand(cmdText); cmd.AddInt("ForumTopicId", forumTopicId); using (GmDataReader dr = cmd.ExecuteReader()) { if (dr.Read()) { forumId = dr.GetInt(); forumName = dr.GetString(); forumTopicName = dr.GetString(); } else { return; } } } } catch (Exception ex) { log.Exception(ex); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Employees", pageDiv); // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { if (!FormSession.getPerm("FPVerify")) { Response.Redirect(@"~/Login.aspx"); } MainMasterPage.ShowTitel(General.Msg("Fingerprint verification", "التحقق بالبصمة")); hfdConnStr.Value = ConfigurationManager.ConnectionStrings["constring"].ConnectionString.Replace("\\", "...."); hfdLoginUser.Value = FormSession.LoginUsr.Replace("\\", "...."); hfdLang.Value = FormSession.Language; string ID = hfdConnStr.Value + "," + hfdLoginUser.Value + "," + hfdLang.Value; ClientScript.RegisterStartupScript(this.GetType(), "key", "javascript:Connect('" + ID + "');", true); } } catch (Exception e1) { DBFun.InsertError(FormSession.PageName, "PageLoad"); } }
public App() { InitializeComponent(); FlowListView.Init(); MainPage = new MainMasterPage(); }
protected void Page_Load(object sender, EventArgs e) { Log log = MainMasterPage.InitPage(this); int id = RequestUtils.GetGalleryImageId(this); this.SqlDataSource1.SelectParameters["GalleryImageId"].DefaultValue = id.ToString(); try { if (id != 0) { string name = null; using (GmConnection conn = Global.CreateConnection()) { name = conn.ExecuteScalar("select Name from GalleryImages where Id=" + id) as string; } if (name != null) { (this.Master as MainMasterPage).PageInfo.AddInfo(name); } } } catch (Exception ex) { log.Exception(ex); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Config", pageDiv); FillGrid(); // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { if (Request.QueryString["ac"] != null) { if (Request.QueryString["ac"].ToString() == "i") { if (!FormSession.PermUsr.Contains("I" + MainPer)) { Response.Redirect(@"~/Login.aspx"); } btnSave.Enabled = FormSession.PermUsr.Contains("I" + MainPer); ViewState["CommandName"] = "Save"; btnSave.Text = General.Msg("Save", "حفظ"); MainMasterPage.ShowTitel(General.Msg("Add " + MainNameEn, "إضافة " + MainName1Ar)); divUpdDel.Visible = false; } if (Request.QueryString["ac"].ToString() == "u") { if (!FormSession.PermUsr.Contains("U" + MainPer)) { Response.Redirect(@"~/Login.aspx"); } btnSave.Enabled = FormSession.PermUsr.Contains("U" + MainPer); ViewState["CommandName"] = "Update"; btnSave.Text = General.Msg("Update", "تعديل"); MainMasterPage.ShowTitel(General.Msg("Update " + MainNameEn, "تعديل " + MainName1Ar)); divUpdDel.Visible = true; Fillddl(); } if (Request.QueryString["ac"].ToString() == "d") { if (!FormSession.PermUsr.Contains("D" + MainPer)) { Response.Redirect(@"~/Login.aspx"); } btnSave.Enabled = FormSession.PermUsr.Contains("D" + MainPer); ViewState["CommandName"] = "Delete"; btnSave.Text = General.Msg("Delete", "حذف"); MainMasterPage.ShowTitel(General.Msg("Delete " + MainNameEn, "حذف " + MainName1Ar)); divUpdDel.Visible = true; Fillddl(); } } } } catch (Exception EX) { DBFun.InsertError(FormSession.PageName, "PageLoad"); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { //---Common Code ----------------------------------------------------------------- // FormSession.FillSession("Visitors", pageDiv); //---Common Code ----------------------------------------------------------------- // if (!IsPostBack) { pnlMain.Attributes.Add("onkeypress", "javascript:return DefaultButton(event,'" + btnIDSearch.ClientID + "');"); if (Request.QueryString["ID"] == null) { Response.Redirect(@"~/Login.aspx"); } ViewState["VisIdentityNo"] = ""; ViewState["Action"] = ""; ButtonAction("00", true); //ddlTmpID.Enabled = false; //VisImage.EnabledImage(false); if (Request.QueryString["ID"].ToString() == "i") { MainMasterPage.ShowTitel(General.Msg("Add " + MainNameEn + " Card", "إضافة بطاقة " + MainName1Ar)); if (!FormSession.PermUsr.Contains("IVis")) { Response.Redirect(@"~/Login.aspx"); } ViewState["Action"] = "A"; btnSave.Enabled = btnCancel.Enabled = false; Fillddl(); } if (Request.QueryString["ID"].ToString() == "u") { MainMasterPage.ShowTitel(General.Msg("Update " + MainNameEn + " Card", "تعديل بطاقة " + MainName1Ar)); if (!FormSession.PermUsr.Contains("UVis")) { Response.Redirect(@"~/Login.aspx"); } ViewState["Action"] = "U"; btnSave.Enabled = btnCancel.Enabled = false; Fillddl(); } ddlTmpID.Enabled = false; } if (IsPostBack) { VisImage.PopulateImage(txtVisIdentityNo.Text); } } catch (Exception ex) { DBFun.InsertError(FormSession.PageName, "PageLoad"); } }
protected void Page_Load(object sender, EventArgs e) { log = MainMasterPage.InitPage(this); try { log = new Log(this); if (!IsPostBack) { using (GmConnection conn = Global.CreateConnection()) { conn.Fill(dataTable, "select PollAnswers.* from PollAnswers where PollAnswers.Status>0 order by PollId desc, Count desc"); conn.Fill(pollQuestions, "select Id, Question from Polls"); } DataColumn dcId = dataTable.Columns["Id"]; DataColumn dcPollId = dataTable.Columns["PollId"]; DataColumn dcCount = dataTable.Columns["Count"]; DataColumn dcPercent = dataTable.Columns.Add("CountPercent", typeof(int)); foreach (DataRow dr in dataTable.Rows) { int id = (int)dr[dcId]; int pollId = (int)dr[dcPollId]; int count = (int)dr[dcCount]; if (pollCounts.ContainsKey(pollId)) { pollCounts[pollId] += count; } else { pollCounts[pollId] = count; } if (!firstIds.ContainsKey(pollId)) { firstIds[pollId] = id; } lastIds[pollId] = id; } foreach (DataRow dr in dataTable.Rows) { int pollId = (int)dr[dcPollId]; int count = (int)dr[dcCount]; int pollCount = pollCounts[pollId]; int countPercent = pollCount > 0?100 * count / pollCount:0; dr[dcPercent] = countPercent; } Repeater1.DataSource = dataTable; Repeater1.DataBind(); } } catch (Exception ex) { log.Exception(ex); } finally { } }
public App(string databaseLocation) { DATABASE_LOCATION = databaseLocation; FlowListView.Init(); PublicTransportService.GetDataAsync(); InitializeComponent(); MainPage = new MainMasterPage(); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { //---Common Code ----------------------------------------------------------------- // FormSession.FillSession("Visitors", null); //---Common Code ----------------------------------------------------------------- // if (!IsPostBack) { MainMasterPage.ShowTitel(General.Msg("Import images from a folder", "الاستيراد من مجلد الصور")); if (!FormSession.getPerm(new string[] { "ImpVis" })) { Response.Redirect(@"~/Login.aspx"); } } }
protected void Page_Load(object sender, EventArgs e) { log = MainMasterPage.InitPage(this); try { if (!IsPostBack) { ucCandidate.LoadData(); } } catch (Exception ex) { log.Exception(ex); lblResult.ForeColor = System.Drawing.Color.Red; lblResult.Text = ex.Message; } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Config", pageDiv); // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { if (!FormSession.PermUsr.Contains("SBla")) { Response.Redirect(@"~/Login.aspx"); } MainMasterPage.ShowTitel(General.Msg("Black List History", "بحث القائمة السوداء")); } } catch (Exception e1) { } }
protected void Page_Load(object sender, EventArgs e) { Log log = MainMasterPage.InitPage(this); try { int articleId = Utils.GetArticleId(this); if (articleId != 0) { Article article = null; // string articleTitle=null; string parentTag = null; using (GmConnection conn = Global.CreateConnection()) { article = Article.GetArticle(conn, articleId); if (article != null) { parentTag = article.GetParentTag(conn); } } if (article != null) { ucArticle.InitControl(article); (this.Master as MainMasterPage).PageInfo.AddInfo(article.title, "", article.header); if (article.isGroup) { ucArticles.InitControl(article.Id, 10, true); } else { ucArticles.Visible = false; } ucArticleControls.InitControl(parentTag, articleId); } } } catch (Exception ex) { log.Exception(ex); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { //---Common Code ----------------------------------------------------------------- // FormSession.FillSession("Visitors", pageDiv); //---Common Code ----------------------------------------------------------------- // if (!IsPostBack) { MainMasterPage.ShowTitel(General.Msg("Import from Excel File", "الاستيراد من ملف اكسل")); if (!FormSession.getPerm(new string[] { "ImpVis" })) { Response.Redirect(@"~/Login.aspx"); } } } catch (Exception e1) { } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { //---Common Code ----------------------------------------------------------------- // FormSession.FillSession("Employees", pageDiv); //---Common Code ----------------------------------------------------------------- // if (!IsPostBack) { if (!FormSession.getPerm("UEmpType")) { Response.Redirect(@"~/Login.aspx"); } MainMasterPage.ShowTitel(General.Msg("Transferr Employees", "نقل الموظفين")); ButtonAction("00", true); } } catch (Exception e1) { DBFun.InsertError(FormSession.PageName, "PageLoad"); } }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Card", pageDiv); // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { if (!FormSession.getPerm("SCrd")) { Response.Redirect(@"~/Login.aspx"); } MainMasterPage.ShowTitel(General.Msg("Cards History", "سجلات البطاقة")); Fillddl(); //DataLang(); } } catch (Exception e1) { } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { //---Common Code ----------------------------------------------------------------- // string Type = (Request.QueryString["ID"] != null) ? Request.QueryString["ID"] : ""; FormSession.FillSession("Reports", pageDiv); //---Common Code ----------------------------------------------------------------- // if (!IsPostBack) { if (!FormSession.PermUsr.Contains("Reports")) { Response.Redirect(@"~/Login.aspx"); } MainMasterPage.ShowTitel(General.Msg("Reports", "التقارير")); lblSelectedreport.Text = General.Msg("Please select Report", "من فضلك اختر التقرير"); FillReportsGroups(); FillIssue(); } }
public static Log InitPage(Page page) { PageInfo pageInfo = new PageInfo(page); MainMasterPage mp = (MainMasterPage)page.Master; mp.pageInfo = pageInfo; /* string fileName=Path.GetFileName(page.Request.FilePath); * // mp.ucLeft.InitControl(mi, fileName); * * mp.ucHeader.banner1 = pageInfo.GetBannerCode(1); * mp.ucRight.banner2 = pageInfo.GetBannerCode(2); * mp.ucLeft.banner3 = pageInfo.GetBannerCode(3); * mp.ucLeft.banner4 = pageInfo.GetBannerCode(4); * mp.ucLeft.banner5 = pageInfo.GetBannerCode(5); * mp.ucRight.banner6 = pageInfo.GetBannerCode(6); * mp.ucRight.banner7 = pageInfo.GetBannerCode(7); * mp.ucRight.banner8 = pageInfo.GetBannerCode(8); * mp.ucRight.banner9 = pageInfo.GetBannerCode(9);*/ return(pageInfo.Log); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { //---Common Code ----------------------------------------------------------------- // FormSession.FillSession("Visitors", pageDiv); //---Common Code ----------------------------------------------------------------- // if (!IsPostBack) { MainMasterPage.ShowTitel(General.Msg("Events Cards History", "سجلات بطاقات المناسبات")); if (!FormSession.PermUsr.Contains("SVis")) { Response.Redirect(@"~/Login.aspx"); } btnSearch.Enabled = btnCancel.Enabled = FormSession.PermUsr.Contains("SVis"); Fillddl(); } } catch (Exception e1) { } }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { //---Common Code ----------------------------------------------------------------- // FormSession.FillSession("Card", pageDiv); //---Common Code ----------------------------------------------------------------- // if (!IsPostBack) { if (!FormSession.getPerm("IStick")) { Response.Redirect(@"~/Login.aspx"); } btnSave.Enabled = FormSession.getPerm("IStick"); MainMasterPage.ShowTitel(General.Msg("Add Sticker", "إصدار ملصق")); ButtonAction("100"); Fillddl(); } } catch (Exception e1) { DBFun.InsertError(FormSession.PageName, "PageLoad"); } }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Users", pageDiv); // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { MainMasterPage.ShowTitel(General.Msg("Users History", "سجلات المستخدمين")); if (!FormSession.PermUsr.Contains("S" + MainPer)) { Response.Redirect(@"~/Login.aspx"); } btnSearch.Enabled = FormSession.PermUsr.Contains("S" + MainPer); FormCtrl.FillDDL("StatusWithSelect", ddlUsrStatus); } } catch (Exception e1) { } }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Card", pageDiv); FormCtrl.RefreshGridEmpty(ref grdData, 20, "No cards for Approve", "لا توجد بطاقات للموافقة عليها"); hfdLang.Value = FormSession.Language; // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { MainMasterPage.ShowTitel(General.Msg("Approve Card", "الموافقة على البطاقات")); if (!FormSession.PermUsr.Contains("ACrd")) { Response.Redirect(@"~/Login.aspx"); } FillDDL(); FillGrid(); } } catch (Exception Ex) { MessageFun.ShowAdminMsg(this, Ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { log = MainMasterPage.InitPage(this); int forumId = RequestUtils.GetForumId(this); this.SqlDataSource1.SelectParameters["ForumId"].DefaultValue = forumId.ToString(); try { Forum forum = null; using (GmConnection conn = Global.CreateConnection()) { forum = Forum.GetForum(conn, forumId); } if (forum != null) { forumName = forum.name; } } catch (Exception ex) { log.Exception(ex); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Home", pageDiv); MainMasterPage.ShowTitel(General.Msg("Change Password", "تغيير كلمة المرور")); // --------------------Common Code ----------------------------------------------------------------- // if (!string.IsNullOrEmpty(txtOldpassword.Text)) { ViewState["OldPass"] = txtOldpassword.Text; } if (ViewState["OldPass"] != null) { txtOldpassword.Attributes["value"] = ViewState["OldPass"].ToString(); } if (!string.IsNullOrEmpty(txtNewpassword.Text)) { ViewState["NewPass"] = txtNewpassword.Text; } if (ViewState["NewPass"] != null) { txtNewpassword.Attributes["value"] = ViewState["NewPass"].ToString(); } if (!string.IsNullOrEmpty(txtConfirmpassword.Text)) { ViewState["ConfirmPass"] = txtConfirmpassword.Text; } if (ViewState["ConfirmPass"] != null) { txtConfirmpassword.Attributes["value"] = ViewState["ConfirmPass"].ToString(); } } catch (Exception e1) { DBFun.InsertError(FormSession.PageName, "Page_Load"); } }
protected void Page_Load(object sender, EventArgs e) { MainMasterPage.InitPage(this); }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected void Page_Load(object sender, EventArgs e) { try { // --------------------Common Code ----------------------------------------------------------------- // FormSession.FillSession("Users", pageDiv); // --------------------Common Code ----------------------------------------------------------------- // if (!IsPostBack) { pnlMain.Attributes.Add("onkeypress", "javascript:return DefaultButton(event,'" + btnSave.ClientID + "');"); if (Request.QueryString["ac"] != null) { if (Request.QueryString["ac"].ToString() == "i") { if (!FormSession.PermUsr.Contains("I" + MainPer)) { Response.Redirect(@"~/Login.aspx"); } btnSave.Enabled = FormSession.PermUsr.Contains("I" + MainPer); ViewState["CommandName"] = "Save"; btnSave.Text = General.Msg("Save", "حفظ"); MainMasterPage.ShowTitel(General.Msg("Add " + MainNameEn, "إضافة " + MainName1Ar)); divUpdDel.Visible = false; } if (Request.QueryString["ac"].ToString() == "u") { if (!FormSession.PermUsr.Contains("U" + MainPer)) { Response.Redirect(@"~/Login.aspx"); } btnSave.Enabled = FormSession.PermUsr.Contains("U" + MainPer); ViewState["CommandName"] = "Update"; btnSave.Text = General.Msg("Update", "تعديل"); MainMasterPage.ShowTitel(General.Msg("Update " + MainNameEn, "تعديل " + MainName1Ar)); divUpdDel.Visible = true; Fillddl(); } if (Request.QueryString["ac"].ToString() == "d") { if (!FormSession.PermUsr.Contains("D" + MainPer)) { Response.Redirect(@"~/Login.aspx"); } btnSave.Enabled = FormSession.PermUsr.Contains("D" + MainPer); ViewState["CommandName"] = "Delete"; btnSave.Text = General.Msg("Delete", "حذف"); MainMasterPage.ShowTitel(General.Msg("Delete " + MainNameEn, "حذف " + MainName1Ar)); divUpdDel.Visible = true; Fillddl(); } } } } catch (Exception e1) { } }