PDF时,我用下面的代码(asp.net),以示对用户的PDF太大: Response.ContentType = "Application/pdf";
Response.AddHeader("Content-Disposition", "attachment; filename=thePdf.pdf");
//data contains a pdf created with iTextSh
本质上,我希望能够在用户让其会话超时然后单击最终导致异步回发的事件时捕获。我想通了,如果我把这个代码我在session_start(Global.asax中),那么我能赶上一个会话超时期间发生的回发: With HttpContext.Current
If TypeOf .Handler Is Page Then
Dim page As Page = CType(.Han