There is general problem to having issue with ViewState in dynamic control.
I have posted one article Code Project you can find it here.
Information Sharing, Technical Articles. You can find solutions, best precticies for ASP.net application. More knowledge sharing on C#, AJAX, SQL, .Net Framework, OOPs Concepts, SQL Server 2005, SQL Server 2000, Programming.