首页新闻找找看学习计划

问代码是什么意思求解析?如何在游览器中查看!是否能运行查询语句!

0
悬赏园豆:10 [待解决问题]

 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;
        }

调用这个方法能查询么???

水嫩小白菜的主页 水嫩小白菜 | 初学一级 | 园豆:3
提问于:2012-09-28 10:20
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册