You can't put variables in a namespace, you need to put them in a class or method.
If you want to make these variables global accessible, put them in a static class
GlobalVariables
:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
namespace ivycode.App_Classes
{
public static class GlobalVariables
{
public static Hashtable objHT = new Hashtable();
public static database objDB = new database();
public static string sRetVal = "";
}
}
And to access them, use this code for example:
GlobalVariables.sRetVal = "value";
Hope this helps.