Click here to Skip to main content
12,633,764 members (31,559 online)
Click here to Skip to main content


33 bookmarked

Simple JSON Handler for ASP.NET 2.0 to Implement AJAX Functionality

, 1 Jul 2011 CPOL
Simple JSON handler for ASP.NET 2.0 to implement AJAX functionality
using System;
using System.Collections.Generic;
using System.Web;
using System.Configuration;

namespace SampleJSONWeb
    public class ConfigurationData
        private static bool debugMode;
        private static string logFileName;

        public static bool DebugMode
            get { return debugMode; }

        public static string LogFileName
            get { return logFileName; }

        static ConfigurationData()
            string debugModeString = ConfigurationManager.AppSettings["debugMode"];
            bool mode;
            if (bool.TryParse(debugModeString, out mode))
                debugMode = mode;
            logFileName =  ConfigurationManager.AppSettings["logFileName"] + 
                "APIA"+ " "+ DateTime.Now.ToString("dd-MMM-yyyy")+ ".txt";

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Pubudu Kasakara
Singapore Singapore
Pubudu Kasakara is working as Solution Architect in Singapore. He has more than 11 years of professional involvement in the IT industry. Worked in successful projects involving mainly the Service Oriented Application by contributing to all requirements gathering, design and implementation phases. He is having experience with SOA applications development, Microsoft .NET, BizTalk, He is member of Charted It professional in UK.

Solution Architect

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161208.2 | Last Updated 1 Jul 2011
Article Copyright 2011 by Pubudu Kasakara
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid