コード例 #1
0
ファイル: UIHelper.cs プロジェクト: vijaymca/Dotnet
        /// <summary>
        /// Gets the master page ID for template.
        /// </summary>
        /// <param name="templateId">The template id.</param>
        /// <param name="templatePageMappingList">The template page mapping list.</param>
        /// <returns></returns>
        protected int[] GetMasterPageIDForTemplate(int templateId, string templatePageMappingList)
        {
            int[] intMasterpageId;
            string strCAMLQuery = @"<Where><Eq><FieldRef Name='Template_ID' /><Value Type='Number'>" + templateId + "</Value></Eq></Where>";
            try
            {
                objCommonBLL = new CommonBLL();
                intMasterpageId = objCommonBLL.GetMasterPageID(strParentSiteURL, templatePageMappingList, strCAMLQuery);
            }

            catch
            {
                throw;
            }
            return intMasterpageId;
        }