随笔分类 -  MVC3

asp.net mvc3
asp.net MVC3 弹出窗口里嵌一个View代码
摘要:代码 : /Files/YSO1983/Popup.rar 阅读全文
posted @ 2012-06-20 16:03 吴勇寿 阅读(3991) 评论(1) 推荐(2)
asp.net MVC Controller之间解决丢失Cookie
摘要:创建Cookie 时候必须命名全部路径View Code 1HttpCookieUserCookie=newHttpCookie("User");2UserCookie["UserID"]=1;3System.Web.HttpContext.Current.Response.Cookies.Add(UserCookie);获取Cookie值View Code 1HttpCookiecookie=System.Web.HttpContext.Current.Request.Cookies["User"];2stringid=cookie 阅读全文
posted @ 2012-06-20 15:10 吴勇寿 阅读(2000) 评论(0) 推荐(1)
在mvc里用jquery+ajax上传文件
摘要:1. View页面代码View Code1<scriptsrc="http://www.cnblogs.com/Scripts/jquery.form.js"type="text/javascript"></script>23<formid="filePost"action="/Home/Upload"method="post"enctype="multipart/form-data">45<label>Filename:< 阅读全文
posted @ 2012-04-27 09:34 吴勇寿 阅读(10138) 评论(1) 推荐(1)