weird problem with skin and masterpage with inline code

K

kelmen

Greeting,

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

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%>;
}
</script>


if I change or disable the inline code say to : m_frmMain =
document.forms[0];

it worked fine then!!!!

Something wrong or incompatible between the theme and masterpage inline
coding?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top