Click here to Skip to main content
12,765,176 members (38,033 online)
Click here to Skip to main content
Add your own
alternative version

Stats

101.6K views
52 bookmarked
Posted 20 Oct 2004

Generating vCalendar files (.vcs) to download in ASP.NET

, 9 Nov 2004
Rate this:
Please Sign up or sign in to vote.
VB.NET code for webpage to ask to download calendar items. Can be used for any calendars that supports vCalendar such as Outlook.

Sample Image - vcalendarfiletodownload.jpg

Introduction

Very simple to create vCalendar files, it is basically like creating text files, the only difference is the format.

In this example, a physical file is not created (no need to clean up a temp directory afterwards), the file is kept in memory using memory stream. Once the file is created in memory, it is sent for download.

vCalendar is using UTC, so the function ToUniversalTime is used to convert the local time to UTC.

<%@ Page Language="vb" ContentType="text/html" 
    ResponseEncoding="iso-8859-1" Debug="False" trace="False"%>
<%@ import Namespace="System.IO" %>

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Florent Boulanger
Web Developer
United States United States
Broad engineering background with business knowledge (graduated from a top French engineering school training entrepreneurs), and excellent relationship skills that Flo utilizes in the I.T. field to streamline/improve company processes.

From web to embedded programming, from a big-5 consulting company to a local hospital, Flo shares his time between development and implementation lead.
Work with ASP.NET, VB.NET, LDAP, SQL Server, Oracle, MySQL...

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralAuto Updates Pin
justin.moses6-Feb-08 14:08
memberjustin.moses6-Feb-08 14:08 
GeneralMemorystream for email attachments Pin
Minessence29-Apr-05 14:53
memberMinessence29-Apr-05 14:53 
GeneralCR's Pin
SouthAfrican21-Jan-05 6:45
memberSouthAfrican21-Jan-05 6:45 
GeneralRe: CR's Pin
Florent Boulanger2-Feb-05 12:50
memberFlorent Boulanger2-Feb-05 12:50 
GeneralRe: CR's Pin
JB12110-Oct-05 8:14
memberJB12110-Oct-05 8:14 
GeneralRe: CR's Pin
JB12110-Oct-05 8:34
memberJB12110-Oct-05 8:34 
GeneralGood job and thanks Pin
mcflee22-Nov-04 4:07
membermcflee22-Nov-04 4:07 
QuestionWorks in Firefox and not in IE?? Pin
Cimedaca12-Nov-04 4:46
memberCimedaca12-Nov-04 4:46 
AnswerRe: Works in Firefox and not in IE?? Pin
Florent Boulanger3-Dec-04 12:14
memberFlorent Boulanger3-Dec-04 12:14 
General[Message Deleted] Pin
Dan Colasanti10-Nov-04 21:07
memberDan Colasanti10-Nov-04 21:07 
GeneralRe: Source Code? Pin
mcflee22-Nov-04 1:37
membermcflee22-Nov-04 1:37 
GeneralWindow media host control in Visual Studio. Pin
khoaduongminh21-Oct-04 17:32
memberkhoaduongminh21-Oct-04 17:32 
GeneralSimilar articles Pin
Chris Becker21-Oct-04 10:41
memberChris Becker21-Oct-04 10:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 9 Nov 2004
Article Copyright 2004 by Florent Boulanger
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid