代码之家  ›  专栏  ›  技术社区  ›  balexandre

如何获取html方法的内容?

  •  0
  • balexandre  · 技术社区  · 14 年前

    我使用的是ASP.NET MVC 2和iCal事件。

    我自己创造了 .ics PUT 以及 PROPFIND 方法。

    投入

    怎么 我能把它付诸行动吗?

    alt text

    [HttpPut]
    public void Index(string id) 
    {
    
    }
    

    它是正常发射的,但我如何获取内容?

    1 回复  |  直到 14 年前
        1
  •  0
  •   balexandre    14 年前

    让我哑口无言

    :o个(

    很容易做到:

    Stream content = Request.InputStream;
    

    [HttpPut]
    public void Index(string id) 
    {
        Stream content = Request.InputStream;
    
        // Process content
    }