05 2011 档案

摘要:生成验证码的代码还是一致这里只是说返回到view层的代码创建actionresult方法,返回一个FileContentResult类型的结果,然后图片连接就像普通url连接一样比如<img src="/AA/GetValidateCode/code">public ActionResult GetValidateCode(string code) { ValideCode vCode = new ValideCode(); string plaincode = CryptTo.CustomerDecode(code); byte[] bytes = vCode 阅读全文
posted @ 2011-05-31 19:13 音乐啤酒 阅读(398) 评论(0) 推荐(0) 编辑
摘要:在mvc页面中如果要超链接普通的htm页面只要把这些html页面放到View文件夹外面就可以 阅读全文
posted @ 2011-05-31 19:10 音乐啤酒 阅读(337) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示