public string Hander_ShareUserBlog() { StringBuilder resp = new StringBuilder("<method>AJAX_ShareUserBlog</method>"); ContentAPI apiContent = new ContentAPI(); long BlogId; int shareOption; try { if (Request.QueryString["BlogId"] != "") { BlogId = Convert.ToInt64(Request.QueryString["BlogId"]); shareOption = Convert.ToInt32(Request.QueryString["shareoption"]); System.Collections.Generic.List<string> list = new System.Collections.Generic.List<string>(); list.Add(BlogId.ToString() + "," + shareOption.ToString()); apiContent.SetWorkSpaceShare(apiContent.RequestInformationRef.UserId, Ektron.Cms.Common.EkEnumeration.WorkSpace.User, list); } } catch (Exception ex) { resp.Append("<result>-1</result>"); resp.Append("<returnmsg>" + ex.Message.ToString() + "</returnmsg>"); } return resp.ToString(); }