引用 public ActionResult GetDemoData() { ArrayList jsonList = new ArrayList(); foreach (DataRow dr in Demo.DemoData().Rows) { jsonList.Add(new A...
分类:
Web程序 时间:
2014-12-08 15:32:21
阅读次数:
281
银联文件下载地址:http://202.101.25.178:8080/sim/docs/public ActionResult unionTest() { Dictionary resp = new Dictionary(); DateTime orderTime = DateTime.Now; ...
分类:
移动开发 时间:
2014-12-03 20:51:07
阅读次数:
144
如果浏览器支持HTML5,通过past事件就可以获取图片的base64位字符,这样就可以实现图片的粘贴上传。前端: CTRL+V即可实现粘贴后台: [HttpPost] public ActionResult PasteImage(HttpPostedFileBase uploa...
分类:
Web程序 时间:
2014-11-30 16:38:42
阅读次数:
157
在本教程中,您将查看自动生成的Details和Delete方法。 查询详细信息和删除记录 打开Movie控制器并查看Details方法。 public ActionResult Details(int id = 0) { Movie movie = db.Movies.Find(id); if (m...
分类:
Web程序 时间:
2014-11-28 19:49:36
阅读次数:
359
加载部分视图$("#result").load("/home/message",function(){//加载完之后隐藏进度条});public ActionResult message(){ return PartialView("视图",实体);}分页控件的使用页面:@ { Html . Ren...
分类:
Web程序 时间:
2014-11-27 18:01:16
阅读次数:
527
public ActionResult CheckLogon() { var con = "document.write('{0}')"; if (AuthManager.UserWebIdentity == null) ...
分类:
Web程序 时间:
2014-11-27 12:05:55
阅读次数:
184
public ActionResult CheckCode()
{
//首先实例化验证码的类
ValidateCode validateCode = new ValidateCode();
//生成验证码指定的长度
string code = validateCode....
分类:
其他好文 时间:
2014-11-24 17:21:07
阅读次数:
206
1.创建MVC4新项目,使用"Internet应用程序"模板。2.添加CustomAjax控制器,具体代码如下。public class CustomAjaxController : Controller { public ActionResult Index() ...
分类:
Web程序 时间:
2014-11-24 15:16:53
阅读次数:
109
ChildActionOnly的目的主要就是让这个Action不通过直接在地址栏输入地址来访问,而是需要通过RenderAction来调用它。调用子操作public ActionResult Index(){return View();}[ChildActionOnly]public ActionR...
分类:
Web程序 时间:
2014-11-24 15:01:57
阅读次数:
276
参考:http://www.cnblogs.com/luotaoyeah/p/3321070.html1、下载 uploadify 组件,copy至 Content文件夹2、View3、Controller public ActionResult Upload(HttpPostedFil...
分类:
Web程序 时间:
2014-11-23 11:37:54
阅读次数:
204