The Controls collection cannot be modified because the control contains code blocks

In this article we explain you how to overcome this problem "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)"

<asp:Literal runat="server" ID="litTitle" Text="Problem Fixed " />

protected void Page_PreRender(object sender, EventArgs e)
{
test.Text = "Problem Fixed:- The Controls collection cannot be modified because the control contains code blocks";
}

Related Alrticles

FREE!!! Registration