When can View state Information about dynamically created controls cause Problems

When you place dynamic controls between other existing controls, Visual Studio inserts the view state information into a specific area of the view state structure.When you upload the Web page and the view state loads,the dynamic control doesn't exist,so the information in view state doesn't apply to the appropriate control and you will get an invalid cast erros.