Posted on: 3/25/2015 2:30:08 AM | Views : 657

What is the reason for a place holder control in asp.net?
The reason I am asking is I had the following error:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I know it is having errors on this line of code in my <head> tag
<link rel="shortcut icon" href="<%=ResolveUrl("~/im/b.ico")%>"/> But when I put this link of code within a place holder tag it works
<head runat="server"> <title></title> <asp:PlaceHolder ID="PlaceHolder1" runat="server"> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <script src="stylesorscripts/jquery-1.11.2.min.js" type="text/javascript"></script> <script src="stylesorscripts ...

Go to the complete details ...