S
simonZ
In asp.net 1.1 I had the following statements in global.asax file:
Using System.Data.SqlClient;
Using System.Web.SessionState;
In asp.net 2.0 I can't access them any more.
For example:
void Application_Start(Object sender, EventArgs e) {
String sql;
SqlCommand oCmd;
sql = "SELECT set_value FROM cpoSettings where set_id=2";
oCmd = new SqlCommand(sql, funkcije.createConnection());
oCmd.CommandType = CommandType.Text;
Application["val"] = oCmd.ExecuteScalar();
oCmd.Connection.Close();
if (Application["val"] = =1){
SqlDataReader rdr;
... and so on
}
}
How can I access to those objects in asp.net 2.0?
Regards,S
Using System.Data.SqlClient;
Using System.Web.SessionState;
In asp.net 2.0 I can't access them any more.
For example:
void Application_Start(Object sender, EventArgs e) {
String sql;
SqlCommand oCmd;
sql = "SELECT set_value FROM cpoSettings where set_id=2";
oCmd = new SqlCommand(sql, funkcije.createConnection());
oCmd.CommandType = CommandType.Text;
Application["val"] = oCmd.ExecuteScalar();
oCmd.Connection.Close();
if (Application["val"] = =1){
SqlDataReader rdr;
... and so on
}
}
How can I access to those objects in asp.net 2.0?
Regards,S