Skip to content

Category: Technology


Categories:

Get Logging in database with the Enterprise Library 4.1

Post date:

Applications generate logs to keep track of their health, to assist in debugging, and for auditing purposes. Logging makes applications more supportable by giving developers a standardized method for recording application information. The Logging Application Block is designed to support flexible and robust logging configurations. The heart of the Enterprise Library Logging Application Block is […]

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, […]