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
| It looks like you are calling a non static property from a static method. You will need to either make the property static, or create an instance of class | |
| static void SetTextboxTextSafe(int result) | |
| { | |
| label1.Text = result.ToString(); | |
| } |
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
| XMl file | |
| <?xml version="1.0" encoding="utf-8" ?> | |
| <Addresses> | |
| <Address key="UK" City="London" Zip="9999"></Address> | |
| <Address Key="US" City="Newyork" Zip="0000"></Address> | |
| </Addresses> | |
| C# |
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
| string strFilename = "Videos.xml"; | |
| XmlDocument xmlDoc = new XmlDocument(); | |
| if (File.Exists(strFilename)) | |
| { | |
| XmlTextReader rdrXml = new XmlTextReader(strFilename); | |
| do { | |
| switch (rdrXml.NodeType) | |
| { |
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
| <AML> | |
| <Item type="Part" action="merge" where="[part].item_number='I12112'"> | |
| <item_number>I12112</item_number> | |
| <cost>1000</cost> | |
| <name>My test</name> | |
| <description>My Desc</description> | |
| <classification>Assembly</classification> | |
| </Item> | |
| </AML> |
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 |
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
| 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
| <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
| <!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
| <!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; |