摘要:
[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... 阅读全文
摘要:
public ActionResult GetList() { string strSql = "select staff_id,nick_name from tbl_ac_info where status='A'"; SqlDataReader sdr = SqlDbHelper.GetSqlDataReader(strSql); List 阅读全文