public void ProcessRequest(HttpContext context)
{
DateTime fDate = Convert.ToDateTime(context.Request.Form["fDate"]);
string InfoContent = context.Request.Form["InfoContent"];
int InfoKind = Convert.ToInt32(context.Request.Form["InfoKind"]);
string Author = context.Request.Form["Author"];
int userId = SSO.information.ValidateUserInfo(fDate, InfoKind, InfoContent, Author);
androidModel.ChildStudyTime ChildStudy = new androidModel.ChildStudyTime();
ChildStudy.InfoKind = 1;
ChildStudy.fDate = DateTime.Now;
ChildStudy.InfoContent = "第三节 历史课";
ChildStudy.Author = " 刘玄德";
}
这样写是什么意思 在soo下面有个information的类 类里面的信息如下
public class information
{
//学习时光
public static int ValidateUserInfo(DateTime fDate, int InfoKind, string InfoContent, string Author)
{
SqlDataReader tablePws = null;
SqlConnection conn = new SqlConnection();
conn.ConnectionString = staticValue.staticValue.userDB;
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
cmd.CommandText = string.Format("select u_studyTime.fDate from u_studyTime,select c_Homework.number from c_Homework select d_Course.courseName from d_Course");
conn.Open();
tablePws = cmd.ExecuteReader();
cmd.Dispose();
conn.Close();
conn.Dispose();
return -1;
}
调用这个方法能查询么???