//[WebInvoke(Method = "POST", UriTemplate = "/MasterPages/Save")] public bool SaveMasterPage(MasterPageFile masterPage) { var request = new RestRequest(this.ServiceUrl + "/MasterPages/Save", Method.POST); request.AddParameter("application/json", SerializeObject(masterPage), ParameterType.RequestBody); return(ExecuteRequestFor <bool>(request)); }
//[WebInvoke(Method = "POST", UriTemplate = "/MasterPages/GetData")] public MasterPageFile GetMasterPageData(MasterPageFile masterPage) { var request = new RestRequest(this.ServiceUrl + "/MasterPages/GetData", Method.POST); request.AddParameter("application/json", SerializeObject(masterPage), ParameterType.RequestBody); return(ExecuteRequestFor <MasterPageFile>(request)); }
/// <summary> /// 마스터 페이지를 리턴한다. OnInit 시 호출되어 할당함 /// </summary> /// <returns>마스터 페이지 경로</returns> public virtual string GetMasterPageFile() { if (MasterPageFile.IsWhiteSpace()) { return(string.Empty); } var masterPageFileName = MasterPageFile.ExtractFileName(); var themeName = WebAppContext.Current.ThemeName.IsWhiteSpace() ? AppSettings.DefaultThemeAssemblyName : WebAppContext.Current.ThemeName; var masterPageFile = string.Format("~/Commons/MasterPages/{0}/{1}", themeName, masterPageFileName); return(FileTool.GetPhysicalPath(masterPageFile).FileExists() ? masterPageFile : MasterPageFile); }
protected void DropDownList2_DataBound(object sender, EventArgs e) { string mPage = MasterPageFile.Substring(MasterPageFile.LastIndexOf("/") + 1); DropDownList2.SelectedValue = mPage; }