摘要: [HttpPost] public ActionResult AddMsg(MsgModel model) { string strSql = "insert into tbl_msg(title,msg,msg_by,msg_date,status) values(@title,@msg,@msg_by,getdate(),'A')"; SqlParameter[] paramter ={ new SqlParameter("@title",SqlDbType.NVarCha... 阅读全文
posted @ 2013-10-23 23:05 --宁静以致远-- 阅读(328) 评论(0) 推荐(0) 编辑
摘要: public ActionResult GetList() { string strSql = "select staff_id,nick_name from tbl_ac_info where status='A'"; SqlDataReader sdr = SqlDbHelper.GetSqlDataReader(strSql); List 阅读全文
posted @ 2013-10-23 22:53 --宁静以致远-- 阅读(379) 评论(0) 推荐(0) 编辑