Creating iCal Files in c#

前端 未结 9 1648
日久生厌
日久生厌 2020-11-29 17:47

I\'m looking for a good method of generating an iCalendar file (*.ics) in c# (asp.net). I\'ve found a couple resources, but one thing that has been lacking is their support

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 18:18

    The easiest way I've found of doing this is to markup your HTML using microformats.

    If you're looking to generate iCalendar files then you could use the hCalendar microformat then include a link such as 'Add to Calendar' that points to:

    http://feeds.technorati.com/events/[ your page's full URL including the http:// ]

    The Technorati page then parses your page, extracts the hCalendar info and sends the iCalendar file to the client.

提交回复
热议问题