Skip to content

Blog


Categories:

Caching in ASP.net

Post date:

The main benefits of caching are performance-related: operations like accessing database information can be one of the most expensive operations of an ASP page’s life cycle. If the database information is fairly static, this database-information can be cached. Caching helps us to achieve three important aspects of QoS (Quality of Service): Performance – Caching improves […]

Categories:

Giving SOAP a REST

Post date:

Many developers will be surprised to learn that SOAP isn’t the only game in town for Web services interfacing. REST offers a perfectly helpful solution for most implementations, with greater flexibility and lower overhead. Developers need to stop reaching immediately for SOAP and start choosing the right technology for the application. What is REST? REST […]

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