Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
while I click on download icon it's starting downloading...

but my page is stuck until my download, not complete.

if I remove session or viewbag then my page is not stuck and i able to click multiple time on download and multiple files can download at once.

What I have tried:

when I use session then a page is refresh after a single click on download.
at a time only one file download. 
Posted
Updated 6-Apr-18 0:08am

1 solution

just add one line to your controller

[SessionState(System.Web.SessionState.SessionStateBehavior.ReadOnly)]



observe now everything working fine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900