SharePoint 2013: Import, validate, and manage app licenses

Learn how to import and manage app licenses, as well as how to retrieve, validate, and communicate licensing states in your apps for SharePoint. Using the tools in the sample, developers can import test licenses, validate licenses, and manage license assignment within SharePoint.

C# (2.2 MB)
4.4 Star
1,676 times
Add to favorites
E-mail Twitter Digg Facebook

Solution explorer

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ValidateLicense.aspx.cs" Inherits="LicenseSPAppSampleWeb.Pages.ValidateLicense" %>

<!DOCTYPE html>

<html xmlns="">
<head runat="server">
    <script type="text/javascript" src=""> </script>
    <script type="text/javascript" src="SPUtils.js"> </script>


<body onload="loadChromeControl('Validate License', '<%=Session["SPHostUrl"]%>', '<%=Session["SPAppWebUrl"]%>');">
     <div class="ms-status-yellow" style="padding:10px 10px 10px 10px"><asp:Label ID="lblWarning" runat="server" Text=""></asp:Label></div>
    <div id="chrome_ctrl_container"></div>
    <form id="form1" runat="server">
        App functionality goes here<br />
        <br />