Response.ContentType =“文本/x-vcalendar”

发布于 2024-07-19 07:07:47 字数 163 浏览 2 评论 0原文

收到错误“在此上下文中响应不可用”

我正在尝试生成 vCalendar,但在 Response.ContentType = "text/x-vcalendar" 上

。 我正在使用 vb.net 1.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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丘比特射中我 2024-07-26 07:07:47

如果您的代码包含在类中,您可能无法访问响应。 您可以尝试使用 HttpContext.Current.Response.ContentType。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文