export to ical

how to export the data into ical format? I am using vb.net /asp.net for this feature. I revived the sample but they are using php and I cant find any asp.net version.

Can anyone know what to write in form.action so that it starts download the file

 var form = document.forms[0];
        form.action = "./data/ical_download.php";
        form.elements.data.value = scheduler.toICal();
        form.submit();

Hello,
scheduler.toICal is defined in one of the extensions of the component. If you use dhtmlxScheduler for .NET, you need to enable this extension, then the method will be available on the client:

DHXScheduler.Extensions.Add(SchedulerExtensions.Extension.Serialize);

I am not using .net version I am using Javascript version following is my code

        var downloadLink = document.createElement("a");
        downloadLink.href = 'data:text/calendar;charset=utf-8,' + escape(scheduler.toICal());
        downloadLink.download = "myfile.ics";
        document.body.appendChild(downloadLink);
        downloadLink.click();
        document.body.removeChild(downloadLink);

it is working in chrome and other browser but not in IE
How to write content and force user to download from IE?
I am looking for any alternative either by form.action or other way.