上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页
摘要: asp.net mvc 使用Ajax调用Action 返回数据。使用asp.net mvc 调用Action方法很简单。一、无参数方法。1、首先,引入jquery-1.5.1.min.js 脚本,根据版本不同大家自行选择。2、在Controllers中书写前台Ajax需要调用的Action,比如:p... 阅读全文
posted @ 2014-04-28 23:20 MrMrCash 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 在上一篇介绍MVC中的Ajax实现方法的时候,曾经提到了除了使用Ajax HTML Helper方式来实现之外,Jquery也是实现Ajax的另外一种方案。通过get方法实现AJax请求ViewClick MeControllerpublic ActionResult GetTime(){ r... 阅读全文
posted @ 2014-04-28 23:18 MrMrCash 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 假设cshtml文件中是这样的:data是json数据。传递到的Action是/Home/MyAjax。那么在Action方法处接收的方式如下:public ActionResult MyAjax(string val1) { string val2 = Requ... 阅读全文
posted @ 2014-04-28 23:12 MrMrCash 阅读(458) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using iFlytekDemo.Models;namespace iFlytekDemo.C... 阅读全文
posted @ 2014-04-20 18:44 MrMrCash 阅读(251) 评论(0) 推荐(0) 编辑
摘要: using System.Collections.Generic;using System.ComponentModel.DataAnnotations;namespace iFlytekDemo.Models{ /// /// 城市实体 /// public class... 阅读全文
posted @ 2014-04-20 18:43 MrMrCash 阅读(205) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Data.Entity;using System.Linq;using System.Web;namespace MvcMusic.Models{ public class A... 阅读全文
posted @ 2014-04-17 01:31 MrMrCash 阅读(164) 评论(0) 推荐(0) 编辑
摘要: resource.loader=webapp webapp.resource.loader.class=org.apache.velocity.tools.view.servlet.WebappLoaderwebapp.resource.loader.path=/WEB-INF/vm/ input.encoding="UTF-8"output.encoding="UTF-8"web.xml customerVelocityServlet com.velocity.servlet.CustomerVelocityServlet ... 阅读全文
posted @ 2014-04-10 00:04 MrMrCash 阅读(349) 评论(0) 推荐(0) 编辑
摘要: "> My JSP 'addcontidion.jsp' starting page Test Case: format(DA02CO00=Y,DA02CO01=Y) ${tpb.getVarStr} please add rule ${tpb.layout} "> Code Page ... 阅读全文
posted @ 2014-04-10 00:01 MrMrCash 阅读(205) 评论(0) 推荐(0) 编辑
摘要: package com.velocity.servlet;import java.io.IOException;import java.util.ArrayList;import java.util.LinkedHashMap;import java.util.List;import java.util.Map;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.apache.velocity.Template;import org.apach 阅读全文
posted @ 2014-04-10 00:00 MrMrCash 阅读(344) 评论(0) 推荐(0) 编辑
摘要: package com.ulitis.www;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.FileWriter;import java.io.IOException;import java.io.InputStream;import java.io.InputStr 阅读全文
posted @ 2014-04-09 23:59 MrMrCash 阅读(300) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页