Response.Write and UpdatePanel

前端 未结 4 574
温柔的废话
温柔的废话 2020-12-06 05:51

I generate a vcard that I send to the client using the following code snippet:

Response.AddHeader(\"Content-Disposition\", string.Format(\"attachment; filena         


        
4条回答
  •  隐瞒了意图╮
    2020-12-06 06:28

    Response.Write will not work under Asynchronous Events. My suggestion is to remove the Update Panel in case it is specifically being used for VCard point of view only.

    Alternatively - Place a control inside the Update Panel and initialize it's value under asynchronous event. Now it will work.

提交回复
热议问题