A
ad
I add the code in the Application_Start of Global.asas
void Application_Start(Object sender, EventArgs e)
{
Hashtable _SystemSet = new Hashtable();
SqlDataReader dr = DM.ExecuteReader("SELECT ColumnID, ColumnC,
ColWidth FROM ColumnSet");
string sKey, sValue;
while (dr.Read())
{
sKey = dr["ColumnID"].ToString();
sValue = dr["ColumnC"].ToString();
_SystemSet.Add(sKey, sValue);
}
dr.Close();
DMHealth.mySetting = _SystemSet;
}
I muse "using System.Data.SqlClient to use SqlDataReader,
Where can I add the using clause in Globa.asas
void Application_Start(Object sender, EventArgs e)
{
Hashtable _SystemSet = new Hashtable();
SqlDataReader dr = DM.ExecuteReader("SELECT ColumnID, ColumnC,
ColWidth FROM ColumnSet");
string sKey, sValue;
while (dr.Read())
{
sKey = dr["ColumnID"].ToString();
sValue = dr["ColumnC"].ToString();
_SystemSet.Add(sKey, sValue);
}
dr.Close();
DMHealth.mySetting = _SystemSet;
}
I muse "using System.Data.SqlClient to use SqlDataReader,
Where can I add the using clause in Globa.asas