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.3 Star
(6)
1,545 times
Add to favorites
6/20/2013
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js"> </script>
    <script type="text/javascript" src="SPUtils.js"> </script>


</head>
 

    
<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">
    <div>
    
        App functionality goes here<br />
    
        <br />
 
        
    </div>
    </form>
</body>
</html>