By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,042 Members | 1,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,042 IT Pros & Developers. It's quick & easy.

weird problem with skin and masterpage with inline code

P: n/a

I have a weird problem. Working fine before I incoporating theme and

my sample is an aspx file using masterpage. working fine.

then when I incoporating theme and skin, keep getting error:

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

after many trial, the error resolved if I:

at masterpage, I have a client script with inline coding to refering
the main form:

<script language="javascript" type="text/javascript">
var m_frmMain = null;

function OnFormLoad()
m_frmMain = document.<%=frmMain.ClientID%>;
if I change or disable the inline code say to : m_frmMain =

it worked fine then!!!!

Something wrong or incompatible between the theme and masterpage inline

Feb 24 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.