asp.net中,用showmodaldialog调起的画面中,下载的功能实现不了!急救!
如题,下载我是这样实现的:
System.IO.FileInfo myFileInfo = new FileInfo(_fullPath);
_Response.AddHeader( "Content-Disposition ", "attachment; filename= " + HttpUtility.UrlEncode(myFileInfo.Name));
_Response.AddHeader( "Content-Length ", myFileInfo.Length.ToString());
_Response.ContentType = "application/octet-stream ";
_Response.WriteFile(myFileInfo.FullName );
不知道为什么实现不了,也不报错,什么反应都没有!
请高手指教,实现类似的功能是不是需要别的办法?
------解决方案--------------------帮你顶,刚才你不是回答我了么,解决了吧