This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var Displ = require('./components/Display.react.jsx'); | |
ReactDOM.render( | |
<Display />, | |
document.getElementById('message') | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var Display = React.createClass({ | |
render: function () { | |
return(<h1>That's cool!</h1>) | |
} | |
}); | |
module.exports = Display; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- The following 4 lines are ASP.NET directives needed when using SharePoint components --%> | |
<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %> | |
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<%-- The markup and script in the following Content element will be placed in the <head> of the page --%> | |
<asp:Content ContentPlaceHolderID="PlaceHolderAdditi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Variables | |
$siteUrl = "http://sharepoint2013/organization/Nav_Rep_WithoutVariation_De" | |
$featureID = [GUID]("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") | |
#endregion | |
#region Add references to SharePoint client assemblies - required for CSOM | |
Add-Type -Path "Microsoft.SharePoint.Client.dll" | |
Add-Type -Path "Microsoft.SharePoint.Client.Runtime.dll" | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Variables | |
$siteUrl = "http://sharepoint2013/organization/Nav_Rep_WithoutVariation_De" | |
$featureID = [GUID]("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") | |
#endregion | |
#region Add references to SharePoint client assemblies - required for CSOM | |
Add-Type -Path "Microsoft.SharePoint.Client.dll" | |
Add-Type -Path "Microsoft.SharePoint.Client.Runtime.dll" | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void Page_Load(object sender, EventArgs e) | |
{ | |
// The following code gets the client context and Title property by using TokenHelper. | |
// To access other properties, the app may need to request permissions on the host web. | |
var spContext = SharePointContextProvider.Current.GetSharePointContext(Context); | |
using (var clientContext = spContext.CreateUserClientContextForSPHost()) | |
{ | |
clientContext.Load(clientContext.Web, web => web.Title); | |
clientContext.ExecuteQuery(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hostUrl = HttpUtility.ParseQueryString(Request.Url.Query).Get("SPHostUrl"); | |
Uri spHostUrl = new Uri(hostUrl); | |
using (var clientContext = TokenHelper.GetS2SClientContextWithWindowsIdentity(spHostUrl, Request.LogonUserIdentity)) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BlogNoneSpFullPageWeb.Default" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title>vintaurus.weeebly.com</title> | |
<link href="../Content/bootstrap.min.css" rel="stylesheet" /> | |
<link href="../Content/bootstrap-theme.min.css" rel="stylesheet" /> | |
<script type="text/javascript" src="../Scripts/jquery-1.9.1.min.js"></script> | |
<script type="text/javascript" src="../Scripts/bootstrap.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.SharePoint.Client; | |
using System; | |
using System.Text; | |
using System.Web; | |
namespace BlogNoneSpFullPageWeb | |
{ | |
public partial class Default : System.Web.UI.Page | |
{ | |
protected void Page_Load(object sender, EventArgs e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var directoryDataSourcesFiles = Directory.GetFiles(uploadReportFolderPath + "\\" + Constants.DirectoryFolder.DataSources); | |
var directoryDatasetFiles = Directory.GetFiles(uploadReportFolderPath + "\\" + Constants.DirectoryFolder.Datasets); | |
var directoryReportFiles = Directory.GetFiles(uploadReportFolderPath + "\\" + Constants.DirectoryFolder.Reports); | |
LoadReportingService(); | |
using (SPSite siteColl = new SPSite(dashboardWebUrl)) | |
using (SPWeb site = siteColl.OpenWeb()) | |
{ | |
IList<DataSourceFile> dataSourceFiles = UploadAndConfigureDataSourceFiles(site, directoryDataSourcesFiles); |
OlderNewer