AJAX (Asynchronous Javascript And Xml) = a methodology employing DOM in combination with techniques for retrieving data without reloading a page. <!DOCTYPE html> <html> <body> <div id=”demo”><h2>Let AJAX change this text</h2></div> <button type=”button” onclick=”loadDoc()”>Change Content</button> <script> function loadDoc() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp.readyState == 4 && xhttp.status == […]
WPF – SaveFileDiaglog
Here is a simple example of how to use the native SaveFileDialog in WPF: var sfd = new SaveFileDialog { Filter = “PDF Documents|*.pdf”, DefaultExt = “.pdf”, FileName = “converted.pdf” }; // Show save file dialog box var result = sfd.ShowDialog(); // Get the location of the file if (result != true) return; var fileName […]
Consume XML From A WebService
I will present two ways of gettingĀ an XML from a WebService and thenĀ read it as object(s). The first one will use validation. To validate an XML we generally use a XSD. This XSD can be provided in the XML it self as a reference or not (like in this case). The XSD is really usefull […]