Need increase MaxControls value in web.config. Is there a recommended value? Any influence for the performance, functionality of the whole farm after change?
Hi all,
Before I occur a issue: "This page allows a limit of 200 controls, and that limit has been exceeded".
After searched, I find out it can be fix to increase the MaxControls in web.config as below:
(http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/0a11dfdd-3627-476c-bfa2-31d160ef9aac)
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
<PageParserPaths />
</SafeMode>"
However, the change will be done in our Prod farm, and the MaxControls="200" is also a standard SharePoint setting, so we must pay attention for the modification.
Is there any recommended value for increasing? What influence for the performance, functionality of the whole farm after increased?
I go through many documents but did not find out any introduction or details for this value, neither any suggestions for the recommended increase value. So is there anyone who know it? I am very appreciated for your reply.
Thank you in advance,
Roy
Answers
Hi, Roy
Thanks for your cooperation.
If there is only few pages contain over 200 webcontrols, for one page, you can create a new page and move of a portion of components to the new one.
In this situation ,each page has less than 200 controls, if they are webpart pages, you just need to add a OOB webpart(iframe webpart)--- Page Viewer Web Part
(http://office.microsoft.com/en-us/sharepointtechnology/HA011609261033.aspx) in one page to display the new page.
That’s how to separate control-overload page and display them with iframe(or iframe webpart) in one page.
Best Regards
AaronTechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
- Marked As Answer byRoy317 Tuesday, November 03, 2009 10:37 AM
All Replies
- Any advice?
Hi, Roy
As your information you need more than 200 controls in your webpage.
I need to get more information:
· How many customized pages in your solution contain over 200 controls?
· What’s maximum number of your page controls?
If this happens on only a few pages ,it is recommend you to trim down your page to have fewer controls instead of change MaxControls configation.
Or, as a walkaround you can use 2 iFrames to display the more than 200 controls in the same page.
Best Regards
-Aaron
- Hi Aaron,
Thank you very much for the suggestions. I will ask the user to get more info and feedback soon.
One more thing, for the iFrames you mentioned, could you please help to give me more information about it? What is it? And how to use 2 iFrames to display the more than 200 controls in the same page?
Best Regards,
Roy Liu
Hi, Roy
Thanks for your cooperation.
If there is only few pages contain over 200 webcontrols, for one page, you can create a new page and move of a portion of components to the new one.
In this situation ,each page has less than 200 controls, if they are webpart pages, you just need to add a OOB webpart(iframe webpart)--- Page Viewer Web Part
(http://office.microsoft.com/en-us/sharepointtechnology/HA011609261033.aspx) in one page to display the new page.
That’s how to separate control-overload page and display them with iframe(or iframe webpart) in one page.
Best Regards
AaronTechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
- Marked As Answer byRoy317 Tuesday, November 03, 2009 10:37 AM
- Hi Aaron,
Thank you so much for the persistent help. It really helps me a lot:-)
Best Regards,
Roy Liu Hi Roy,
Glad to hear that. If you have further problem, please let me know. Thanks.
o Best Regards
AaronTechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
- Ok, got it.
Thank you so much, Aaron. Have a nice day:-)
Best Regards,
Roy


