I’m storing my HTML in a database so the page loads the HTML data from the database. I use ViewData in my ASPX page in order to populate the page. The HTML is stored in a NVARCHAR(MAX) column and it’s working great for small pages. The problem I’m having is when the HTML is large. It populates 2 thirds of the HTML data but loses the last third. Is there a limit to ViewData?
Share
There is no limit on view data size as far as I am aware of, certainly view data of many megabytes is possible and that should be enough to contain the HTML of even the enormous page.
How much data are you talking about? Are you actually storing the viewdata in the database as part of the page HTML? This feels like a bad idea as the view data of the page should be generated by the asp.net runtime.