【问题标题】:After open attachment page events not work in asp.net打开附件页面事件后在 asp.net 中不起作用
【发布时间】:2009-09-21 12:00:03
【问题描述】:

在页面上,我通过将 PostBackUrl 设置为单击打开链接按钮上的附件

lnkCalendar.PostBackUrl = "AddScheduleToCalendar.aspx?scheduleGuid=" + scheduleGuid;

保存或关闭附件后,当前打开的网页按钮单击仍会再次打开相同的附件,它们自己的单击事件不起作用。如果直到不单击附件链接按钮事件有效。 AddScheduleToCalendar.aspx页面加载方式的attachmnet代码为

string calendarFormat = GetScheduleInfo();
            Response.ContentType = "text/calendar";
            Response.AppendHeader("content-disposition", "attachment; filename=MyCalendar.ics");
            Response.Write(calendarFormat);
            Response.End();

【问题讨论】:

    标签: asp.net attachment


    【解决方案1】:

    当您回发打开附件时,您的页面生命周期将再次执行。

    我最好的猜测是您在加载附件时没有分配 PostBackUrls。

    提供有关如何加载这些附件的更多信息。

    【讨论】:

      猜你喜欢
      • 2015-01-18
      • 1970-01-01
      • 1970-01-01
      • 2021-01-03
      • 1970-01-01
      • 2017-01-23
      • 2011-06-07
      • 2016-05-05
      • 1970-01-01
      相关资源
      最近更新 更多