Skip to content

Category: Technology


Categories:

Using XPathDocument

Post date:

using Systm.XML.Xpath //creates an instance of XPathDocument class and loads xml if (System.IO.File.Exists(Server.MapPath(“/portal/BrowserCookieValidation.xml”))) { XPathDocument doc = new XPathDocument(Server.MapPath(“BrowserCookieValidation.xml”)); //An XPathNavigator object acts like a cursor, addressing a node in the XML document at a time XPathNavigator nav = doc.CreateNavigator(); string message = String.Empty; // Compile a standard XPath expression XPathExpression expr = nav.Compile(“/CookieValidation/OutCompany[@OCID=” + […]

Categories:

The XMLHttpRequest Instantiation with explanations

Post date:

function getXMLHTTP() { var XMLHTTP = null; if (window.ActiveXObject) { try { //this legacy approach failed, try other object XMLHTTP = new ActiveXObject(“Msxml2.XMLHTTP”); } catch (e) { try { //ie implementation XMLHTTP = new ActiveXObject(“Microsoft.XMLHTTP”); } catch (e) { } } } else if (window.XMLHttpRequest) { try { //mozilla based. This line tries to create […]

Categories:

Why should we developers bother to Comment our Code!!

Post date:

Commenting your code is like cleaning your bathroom—you never want to do it, but it really does create a more pleasant experience for you and your guests. Because I’ve recently adopted a new mantra to use comments frequently and appropriately in my code, I spent a few hours researching the literature on commenting readability, reusability, […]

Categories:

Do I Need Design Patterns in Software Development?

Post date:

Software professionals may be familiar with the term “Design Patterns,” but many have no idea of where they come from and what they truly are. Consequently, some do not see the value and benefits design patterns bring to the software development process, especially in the areas of maintenance and code reuse. This article will bridge […]