What is the maximum number of controls that can be placed in a .aspx page ?

What is the maximum number of controls that can be placed in a .aspx page ?  I have one page that may top 500 controls.
shelbyinfotechAsked:
Who is Participating?
 
Abu HamdanConnect With a Mentor Enterprise Architect, PM ExpertCommented:
I think the thing that you should care about here not the number of controls, its the request size for this page,, because .Net limits the request with 4 MB,, but you can increase it if you want ,,,

See this resource:
http://forums.asp.net/t/1159504.aspx
0
 
kevp75Commented:
i don't think there is a max amount of controls you can have on a page, however a couple things you may want to consider.   How big is this going to make the page?  Are your users on dial-up?  Any of them reference a database, or the file-system?

All of these things can cause the page to timeout (if the timeout is not set), also, it may just load too slow for someone to stay interested in the page, potentially causing a loss of visitors.

Personally, I wouldn't throw 500 controls on one page.  I'd break it up to at least 5 pages....
0
 
surajgupthaCommented:
There are no known limits for the number of controls on a aspx page. The system should be able to render 500 controls but the question is how usable is a form with 500 controls going to be.
0
 
kevp75Commented:
precisely
0
 
shelbyinfotechAuthor Commented:
This is for an intranet site, 189 are textboxes, 189 labels that indicate valid input and 49 labels to change state considering selection critera, a max of 160 will be enabled at a time.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.