Hi everyone, i have built a basic calendar event using DDay.iCal, when I click "Add to calendar" link I produce an event and then sends this to the client.
I basic my application works like this.
- A User logs in.
- Selects a specific date.
- Books a specific timeslot
- Clicks the "Add to calendar" link
Sending the event is done by using Responce.Write() which sends the folowing to the client: Response.ContentType = "text/calendar"; Response.AddHeader("Content-disposition", "attachment; filename=appointment.ics"); Responce.Write(iCalString);
The above works fins but it requires me to first book the event then manually and then click the "Add to calendar" link.
I want to merge the steps 3 and 4. But when trying to do so the event bookig gets saved to the database but the screen does not get refreshed.
Is there a "simple" way to get around this?
Thank you!
/Magnus