Click here to Skip to main content
15,905,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
i am using viewdata in my mvc app.

this.ViewData["name"] = nameService.getNames();

the problem is if the count if data size is more then the ViewData["name"] is not taking.
example: 500 count

Any suggestion Plz Help!
Posted
Comments
Karthik Chintala 25-Mar-13 2:09am    
use ViewBag instead. ex: ViewBag.name=nameService.getNames();
Deependra Khangarot 25-Mar-13 2:24am    
Hi Rohit,

Refer this link : http://stackoverflow.com/questions/4333487/does-viewdata-have-a-maximum-length

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