Programming

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

While I was writing an in-line code with javascript inside the master page I was constantly facing the following exception. The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>). Welcome, <script type=”text/javascript”>var loginName = “<%= SPContext.Current.Web.CurrentUser.Name %>”;document.write(loginName);</script> Found out that the javascript with c# code Read more…

By Kannan, ago
Optimization WordPress Plugins & Solutions by W3 EDGE