• 大小: 0.52M
    文件类型: .7z
    金币: 2
    下载: 1 次
    发布日期: 2021-01-30
  • 语言: ASP
  • 标签: MVC  asp.net  asp  c  .NET  

资源简介


MyMVC 版本更新日志(以文件版本为准)
------------------------------------------


1.3.0.816
------------------------------------------
1. 给PageResult,UcResult各增加了一个构造函数的重载版本。


1.3.0.728
------------------------------------------
1. 支持类型的隐式类型转换(string做为输入条件),用于为Action准备参数时,自定义从string到目标数据类型的转换
2. 将类型ActionExecutor由public改成internal

1.3.0.610
------------------------------------------
1. 增加ServiceHandlerFactory,功能与AjaxHandlerFactory类似,但是URL格式更灵活。
2. 优化了Controller的查找过程。


1.3.0.511
------------------------------------------
1. 增加对虚拟目录的支持。


1.3.0.413
------------------------------------------
1. 增加了ResponseWriter工具类,用于快速实现BigPipe


1.3.0.330
------------------------------------------
1. 增加JSON传入格式的支持,请参考:TestSerializer.htm
2. 增加XML传入格式的支持,请参考:TestSerializer.htm
3. 增加XML输出格式的支持,XmlResult
4. 增加GzipModule,允许客户端要求GZIP响应,xhr.setRequestHeader("X-Gzip-Respond", "1");


1.3.0.211
------------------------------------------
1. 优化反射性能,增加OptimizeReflection目录


1.2.0.120
------------------------------------------
1. 增加HttpValueIgnoreAttribute
2. ActionAttribute增加 Verb 属性,用于区分重载方法。
3. 增加VoidType,用于区分同名的Action重载方法。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using MyMVC;
using System.Text;

/// 
///WebService1 的摘要说明
/// 

[WebService(Namespace = “http://tempuri.org/“)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。 
[System.Web.script.Services.scriptService]
public class WebService1 : System.Web.Services.WebService {

    public WebService1 () {

        //如果使用设计的组件,请取消注释以下行 
        //InitializeComponent(); 
    }

[WebMethod]
public int Add(int a int b)
{
return a + b;
}



[WebMethod]
public string AddCustomer(Customer customer)
{
if( customer == null )
return “customer is null.“;

// 简单地返回一个xml字

评论

共有 条评论