01 2017 档案

c# Web.config中 windows连接数据库
摘要:<add name="DataModel" connectionString="data source=iZ25i7k61adZ;initial catalog=Parkpedia;Integrated Security=SSPI;" providerName="System.Data.SqlCli 阅读全文

posted @ 2017-01-22 14:18 lijingran 阅读(2010) 评论(0) 推荐(0)

MVC之图片验证码
摘要:MVC之图片验证码 @Html.TextBox("code", "", new { @class = "textBox yzCode", placeholder = "验证码", id = "loginCode", onblur = "validateLoginCode(loginCode);" } 阅读全文

posted @ 2017-01-19 12:04 lijingran 阅读(1040) 评论(0) 推荐(0)

匿名函数-简单实例
摘要:匿名函数-简单实例 阅读全文

posted @ 2017-01-19 11:31 lijingran 阅读(287) 评论(0) 推荐(0)

c# 如何找到项目中图片的相对路径
摘要:c# 如何找到项目中图片的相对路径 string path = System.Environment.CurrentDirectory;//非Web程序if (System.Environment.CurrentDirectory != AppDomain.CurrentDomain.BaseDir 阅读全文

posted @ 2017-01-19 10:37 lijingran 阅读(6147) 评论(0) 推荐(0)

MVC下 把数据库中的byte[]值保存成图片,并显示在view页面
摘要:MVC下 把数据库中的byte[]值转成图片,并显示在view页面 controller中的action方法 //显示图片[AllowAnonymous]public ActionResult ShowImage(int id){ LogHandler.Handler.WriteLog("Uploa 阅读全文

posted @ 2017-01-19 10:23 lijingran 阅读(2413) 评论(0) 推荐(0)

MVC下form表单一次上传多种类型的图片(每种类型的图片可以上传多张)
摘要:form表单一次上传多种类型的图片(每种类型的图片可以上传多张) controller中的action方法 view中的代码 引入<script src="~/Scripts/jquery.form.js"></script> 阅读全文

posted @ 2017-01-19 10:04 lijingran 阅读(3418) 评论(3) 推荐(0)

导航