tags:

views:

412

answers:

1

I am trying to generate a vCalendar but i am getting an error "response is not available in this context"

on Response.ContentType = "text/x-vcalendar" .

I am using vb.net , 1.1 framework.

Any ideas?

-MIthil

A: 

If your code is wrapped up in a class you may not be able to access the Response. You could try using HttpContext.Current.Response.ContentType.

jellomonkey