Example #1
0
        public string UploadImage(byte[] data, string name, string filename, string contentType, NameValueCollection nvc)
        {
            //string result = CGClass.HttpPostFS("http://" + nodeserver + "/Upload",stream);
            string result = CGClass.HttpUploadFile("http://" + nodeserver + "/Content/Upload", data, name, filename, contentType, nvc);

            return(result);
        }
Example #2
0
        public IEnumerable <DIContentSeo> SelectContentDetailSeo(string idcontenteditordetail)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/contentdetail/SelectSeoContentDetail?idContentEditorDetail=" + idcontenteditordetail);
            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            contentseo = json_serializer.Deserialize <List <DIContentSeo> >(result);
            return(contentseo.ToList());
        }
Example #3
0
        public IEnumerable <DIiconresource> SelectIcon()
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/contentdetail/SelectIconResource");
            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            contenticon = json_serializer.Deserialize <List <DIiconresource> >(result);
            return(contenticon.ToList());
        }
Example #4
0
        public IEnumerable <DIContent> SelectContent(string idcontenteditor)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/Content/SelectById?idContentEditor=" + idcontenteditor);
            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            content = json_serializer.Deserialize <List <DIContent> >(result);
            return(content.ToList());
        }
Example #5
0
        public IEnumerable <DIContent> ShowContent(string layout)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/Content/selectContent?layout=" + layout);
            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            content = json_serializer.Deserialize <List <DIContent> >(result);
            return(content.ToList());
        }
Example #6
0
        public string Addcontentmore(string idcontenteditordetail)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/Addmoredetail", "idContentEditorDetail=" + idcontenteditordetail);

            return(result);
        }
Example #7
0
        public string SetUpdownContent(string idcontenteditordetail, string idcontenteditordetaildes)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateUpDown", "idContentEditorDetail=" + idcontenteditordetail + "&idContentEditorDetaildes=" + idcontenteditordetaildes);

            return(result);
        }
Example #8
0
        public string DeleteImg(string idcontenteditor)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/DeleteImg", "idContentEditor=" + idcontenteditor);

            return(result);
        }
Example #9
0
        public string UpdateImgSize(string imgpath, string idcontenteditordetail)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateSizeImg", "idContentEditorDetail=" + idcontenteditordetail + "&imgPath=" + imgpath);

            return(result);
        }
Example #10
0
        public string UploadImage(byte[] data, string name, string filename, string contentType, NameValueCollection nvc)
        {
            string result = CGClass.HttpUploadFile("http://" + nodeserver + "/contentdetail/UploadImg", data, name, filename, contentType, nvc);

            return(result);
        }
Example #11
0
        public string UpdateImgSize(string imgpath, string idcontenteditor)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateSize", "idContentEditor=" + idcontenteditor + "&imgPath=" + imgpath);

            return(result);
        }
Example #12
0
        public string UpdateImgPosition(string idcontenteditor, string position)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/Upposition", "idContentEditor=" + idcontenteditor + "&imgPosition=" + position);

            return(result);
        }
Example #13
0
        public string UpdateContent(string idcontenteditor, string textdata)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateContent", "idcon=" + idcontenteditor + "&text=" + textdata);

            return(result);
        }
Example #14
0
        public string Addcontentblock(string idcontenteditor)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/Addcontentblock", "idContentEditor=" + idcontenteditor);

            return(result);
        }
Example #15
0
        public string AddSeo(string title, string keyword, string description, string urlrewrite, string idcontenteditordetail)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/AddSEO", "Title=" + title + "&Keywords=" + keyword + "&Description=" + description + "&URLRewrite=" + urlrewrite + "&idContentEditorDetail=" + idcontenteditordetail);

            return(result);
        }
Example #16
0
        public string UpdateTrickbox(string idcontenteditor, string check)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateTrickbox", "id=" + idcontenteditor + "&thick=" + check);

            return(result);
        }
Example #17
0
        public string UpdateDatatext(string idcontenteditordetail, string textdata)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateDatatext", "idContentEditorDetail=" + idcontenteditordetail + "&textdata=" + textdata);

            return(result);
        }
Example #18
0
        public string UpdateLinkTypeValue(string idcontenteditordetail, string linktypepath)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateContentLinkValue", "idContentEditorDetail=" + idcontenteditordetail + "&ContentLinkTypeValue=" + linktypepath);

            return(result);
        }
Example #19
0
        public string UpdateImgPosition(string idcontenteditordetail, string position)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdatePosition", "idContentEditorDetail=" + idcontenteditordetail + "&imgPosition=" + position);

            return(result);
        }
Example #20
0
        public string DeleteBlock(string idcontenteditordetail)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/DeleteContentDetail", "idContentEditorDetail=" + idcontenteditordetail);

            return(result);
        }
Example #21
0
        public string UpdateTrickbox(string idcontenteditordetail, string check)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateTrickbox", "idContentEditorDetail=" + idcontenteditordetail + "&imgThickBoxShow=" + check);

            return(result);
        }
Example #22
0
        public string SetUpdownContent(string idcontenteditor, string idcontenteditordes)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/SetUpdownContent", "idcontenteditor=" + idcontenteditor + "&idcontenteditordes=" + idcontenteditordes);

            return(result);
        }