protected void Page_Load(object sender, EventArgs e) { clsSpeedo.Authenticate(); ValidateUser(); //ckeContents.config.toolbar = new object[] // { // new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "SpellChecker", "Scayt" }, // new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" }, // "/", // new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" }, // new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" }, // new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" }, // "/", // new object[] { "Styles", "Format", "Font", "FontSize" }, // new object[] { "TextColor", "BGColor" }, // }; ckeContents.config.toolbar = new object[] { new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "SpellChecker", "Scayt" }, new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" }, new object[] { "Image", "Table", "HorizontalRule", "Smiley", "SpecialChar" }, "/", new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" }, new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" }, new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" }, "/", new object[] { "Styles", "Format", "Font", "FontSize" }, new object[] { "TextColor", "BGColor" }, }; if (!Page.IsPostBack) { string strUsername = Request.Cookies["Speedo"]["UserName"]; int intGroupUpdateCode = Request.QueryString["GroupUpdateCode"].ToString().ToInt(); using (clsGroupUpdate objView = new clsGroupUpdate()) { objView.GroupUpdateCode = intGroupUpdateCode; objView.Fill(); txtTitle.Text = objView.Title; txtDescription.Text = objView.Description; lblGroupHead.Text = clsEmployee.GetName(GroupUpdateApproval.GetApproverName(intGroupUpdateCode.ToString(), "1")); txtGroupHeadRemark.Text = GroupUpdateApproval.GetApproverRemarks(intGroupUpdateCode.ToString(), "1"); //lblDivisionHead.Text = clsEmployee.GetName(GroupUpdateApproval.GetApproverName(intGroupUpdateCode.ToString(), "2")); //txtDivisionHeadRemark.Text = GroupUpdateApproval.GetApproverRemarks(intGroupUpdateCode.ToString(), "2"); txtPhotoSource.Text = objView.PhotoSource; hdnGroupHead.Value = GroupUpdateApproval.GetApprover(GroupUpdateApproval.GroupUpdateUserType.GroupHead, clsEmployee.GetDepartmentCode(strUsername)); ckeContents.Text = objView.Content; txtContributor.Text = objView.Contributor; } } }
protected void Page_Load(object sender, EventArgs e) { clsSpeedo.Authenticate(); ValidateUser(); //ckeContents.config.toolbar = new object[] // { // new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "SpellChecker", "Scayt" }, // new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" }, // "/", // new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" }, // new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" }, // new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" }, // "/", // new object[] { "Styles", "Format", "Font", "FontSize" }, // new object[] { "TextColor", "BGColor" }, // }; //<CKEditor:CKEditorControl ID="ckeContents" runat="server" BackColor="White" //CssClass="controls" Height="300px" ToolbarFull="Cut|Copy|Paste|PasteText|PasteFromWord|-|SpellChecker|Scayt // Undo|Redo|-|Find|Replace|-|Bold|Italic|Underline|Strike // Image|Table|HorizontalRule|Smiley|SpecialChar // / // NumberedList|BulletedList|-|Outdent|Indent|Blockquote|CreateDiv // JustifyLeft|JustifyCenter|JustifyRight|JustifyBlock // Link|Unlink|Anchor // TextColor|BGColor // Subscript|Superscript // / // Styles|Format|Font|FontSize" Width="98%" /> ckeContents.config.toolbar = new object[] { new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "SpellChecker", "Scayt" }, new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" }, new object[] { "Image", "Table", "HorizontalRule", "Smiley", "SpecialChar" }, "/", new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" }, new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" }, new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" }, "/", new object[] { "Styles", "Format", "Font", "FontSize" }, new object[] { "TextColor", "BGColor" }, }; //if (hndGroupUpdateCode.Value != string.Empty) //{ // //Response.Redirect("GroupUpdatePreview.aspx?GroupUpdateCode=" + hdnGroupHead.Value); // btnPreview.OnClientClick = "javascript:window.open('GroupUpdatePreview.aspx?GroupUpdateCode=" + hndGroupUpdateCode.Value + "');"; //} if (!Page.IsPostBack) { string username = Request.Cookies["Speedo"]["UserName"]; hdnGroupHead.Value = GroupUpdateApproval.GetApprover(GroupUpdateApproval.GroupUpdateUserType.GroupHead, clsEmployee.GetDepartmentCode(username)); //hdnDivisionHead.Value = GroupUpdateApproval.GetApprover(GroupUpdateApproval.GroupUpdateUserType.DivisionHead, clsEmployee.GetDepartmentCode(username)); } }