2010-10-15 67 views
0

我正在使用ASP.NET MVC 2和iCal事件。如何获取html方法的内容?

我生成了我自己的.ics文件,并用Thunderbird订阅了该日历。每次我在Thunderbird中更改事件时,它都会触发PUTPROPFIND方法。

PUT它发送修改的日历文件。

如何在Action中得到该结果?

alt text

我目前的操作是:

[HttpPut] 
public void Index(string id) 
{ 

} 

通常将其解雇,但我如何获得内容?

回答

0

哑我

:O(

很容易为:

Stream content = Request.InputStream; 

这样:

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

    // Process content 
}