SharePoint Developer Center > SharePoint Products and Technologies Forums > SharePoint - Development and Programming > Need increase MaxControls value in web.config. Is there a recommended value? Any influence for the performance, functionality of the whole farm after change?
Ask a questionAsk a question
 

AnswerNeed increase MaxControls value in web.config. Is there a recommended value? Any influence for the performance, functionality of the whole farm after change?

  • Wednesday, October 21, 2009 8:38 AMRoy317 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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

All Replies

  • Thursday, October 22, 2009 8:37 AMRoy317 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Any advice?
  • Thursday, October 22, 2009 10:27 AMAaron Han - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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

  • Sunday, October 25, 2009 12:18 PMRoy317 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
     
  • Monday, October 26, 2009 10:50 AMAaron Han - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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


    Aaron

    TechNet 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
    •  
  • Tuesday, November 03, 2009 11:04 AMRoy317 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Aaron,

    Thank you so much for the persistent help. It really helps me a lot:-)


    Best Regards, 
     

    Roy Liu
  • Wednesday, November 04, 2009 1:59 AMAaron Han - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi Roy,

     

          Glad to hear that. If you have further problem, please let me know. Thanks.

     

    o        Best Regards

    Aaron

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact tngfb@microsoft.com

  • Friday, November 06, 2009 7:32 AMRoy317 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Ok, got it.

    Thank you so much, Aaron. Have a nice day:-)


    Best Regards,

    Roy