I have written a panel style web control. Everything works perfectly except I cannot use code blocks in between the control tags as such
<myPanel:panel runat="server">
<% Response.Write("Hello") %>
</myPanel:panel>
Although the asp:panel control can do this. Even if I derive from the panel, I still get this error
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Any Thoughts?
-----------------------------------------------------------
Crack .Net Mercenary
Always 4 Hire
[email protected]