Click here to Skip to main content
15,898,036 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using asp:FileUpload control for file attachment and asp:GridView for listing of attachments.

What I have tried:

While trying first file of 2MB is working fine and adding to the GridView list. But while trying for another 2MB file, the browser showing an error
as :

Aw, Snap!
Google Chrome ran out of memory while trying to display this webpage.

In the web.config file I have set

<system.web>
<httpRuntime targetFramework="4.5" maxRequestLength="2097152" />


<system.webserver>
<security>
<requestfiltering>
<requestLimits maxAllowedContentLength="2147483648" />




Please suggest. Thanks in advance.
Posted

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