The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).



Here's what I did, I change <%= %> to <%# %>
As you can see im using the <%= %>
using <%= %>





Solution: so I replaced it with <%#  %>










Work's great!

Also put this on the page load event of your masterpage!
this.Page.Header.DataBind();

0 comments:

Post a Comment