This file contains hidden or 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
| <script src="http://code.jquery.com/jquery.js" type="text/javascript"></script> | |
| <!--Download tmpl "https://code.google.com/p/my-web-js/downloads/detail?name=jquery.tmpl.min.js&can=2&q="--> | |
| <script src="jquery.tmpl.min.js" type="text/javascript"></script> | |
| <script id="movieTemplate" type="text/x-jquery-tmpl"> | |
| <li> | |
| <b>{{html Name}}</b> | |
| (<span style="color: Blue"> ${ReleaseYear}</span>) - Director: ${Director} | |
| </li> | |
| </script> | |
| <ul id="results"></ul> |
This file contains hidden or 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
| <%-- _lcid="1033" _version="16.0.3020" _dal="1" --%> | |
| <%-- _LocalBinding --%> | |
| <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %> | |
| <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=1 |
This file contains hidden or 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
| <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> | |
| <head> | |
| <title>My Custom Refinement</title> | |
| <!--[if gte mso 9]><xml> | |
| <mso:CustomDocumentProperties> | |
| <mso:CompatibleManagedProperties msdt:dt="string"></mso:CompatibleManagedProperties> | |
| <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden> | |
| <mso:CompatibleSearchDataTypes msdt:dt="string"></mso:CompatibleSearchDataTypes> | |
| <mso:MasterPageDescription msdt:dt="string">lsw.refinement</mso:MasterPageDescription> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <p>Click anywhere in the document.</p> | |
| <p id="demo"></p> | |
| <p id="demo1"></p> | |
| <p id="demo2"></p> | |
| <script> |
This file contains hidden or 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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>slide demo</title> | |
| <link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css"> | |
| <style> | |
| #toggle { | |
| width: 900px; | |
| height: 30px; |
This file contains hidden or 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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>slide demo</title> | |
| <link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css"> | |
| <style> | |
| #toggle | |
| { | |
| width: 900px; |
This file contains hidden or 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
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title></title> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
| <script> | |
| $(document).ready(function () { | |
| $('.submitButton').click(function (e) { | |
| var startTime = new Date(); | |
| var seen = {}; | |
| $('ul li').each(function () { |
This file contains hidden or 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
| public static void SetManagedMetaDataField(string siteUrl, | |
| string listName, | |
| string itemID, | |
| string fieldName, | |
| string term) | |
| { | |
| ClientContext clientContext = new ClientContext(siteUrl); | |
| List list = clientContext.Web.Lists.GetByTitle(listName); |
This file contains hidden or 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
| XmlDocument xdoc = new XmlDocument(); | |
| TextWriter wwriter = new StreamWriter("c:/a.xml"); | |
| //Do your logic to add all tags to xdoc | |
| ////with Tag <?xml version="1.0" encoding="utf-8"?> | |
| //xdoc.Save(wwriter); | |
| ////without tag- <?xml version="1.0" encoding="utf-8"?> | |
| XmlWriterSettings xws = new XmlWriterSettings { OmitXmlDeclaration = true }; | |
| using (XmlWriter xw = XmlWriter.Create(wwriter, xws)) |
This file contains hidden or 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
| //Note for item create use action='add'...for below code -Don't use merge | |
| HttpServerConnection objCon = IomFactory.CreateHttpServerConnection("http://localhost/InnovatorServer/Server/InnovatorServer.aspx", "MyDB", "Admin", "innovator"); | |
| Item objItemRes = objCon.Login(); | |
| if (objItemRes.isError()) | |
| { | |
| throw new Exception("Login Error"); | |
| } | |
| Innovator innovator = objItemRes.getInnovator(); | |
| ////Option 1 |
OlderNewer