Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="https://stackoverflow.com/questions/10658/creating-ical-files-in-c-sharp">Creating iCals in C#</a> and <a href="http://www.codeproject.com/Articles/17980/Adding-iCalendar-Support-to-Your-Program-Part-1" rel="nofollow noreferrer">this CodeProject post</a> tell me you should use the <a href="http://sourceforge.net/projects/dday-ical/" rel="nofollow noreferrer">DDay iCal Library</a>.</p> <blockquote> <p>DDay.iCal is an iCal (RFC 5545) class library for .NET 2.0 and above, Silverlight. It aims at being as RFC 5545 compliant as possible, while targeting compatibility with popular calendaring applications, like Apple iCal, Outlook 2007, etc.</p> </blockquote> <p>Some <a href="http://rbalajiprasad.blogspot.nl/2012/11/mvc-c-create-ical-calendar-ics-feed.html" rel="nofollow noreferrer">sample code</a> of iCal + MVC + DDay.iCal</p> <pre><code>public ActionResult iCalendar(string DownloadFileName) { DDay.iCal.iCalendar iCal = new DDay.iCal.iCalendar(); Event evt = iCal.Create&lt;Event&gt;(); evt.Start = iCalDateTime.Today.AddHours(8); evt.End = evt.Start.AddHours(18); // This also sets the duration evt.Description = "The event description"; evt.Location = "Event location"; evt.Summary = "18 hour event summary"; evt = iCal.Create&lt;Event&gt;(); evt.Start = iCalDateTime.Today.AddDays(5); evt.End = evt.Start.AddDays(1); evt.IsAllDay = true; evt.Summary = "All-day event"; ISerializationContext ctx = new SerializationContext(); ISerializerFactory factory = new DDay.iCal.Serialization.iCalendar.SerializerFactory(); IStringSerializer serializer = factory.Build(iCal.GetType(), ctx) as IStringSerializer; string output = serializer.SerializeToString(iCal); var contentType = "text/calendar"; var bytes = Encoding.UTF8.GetBytes(output); return File(bytes, contentType, DownloadFileName); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload