best place to put javascript in conlib controls
best place to put javascript in conlib controls
I was wondering what is the recommended approach for using javascript in ConLib controls. I see in some cases it's done in code. Others, perhaps just put in the <script>...</script>< in the user controls themselves. Any thoughts or recommendations?
Re: best place to put javascript in conlib controls
JavaScript code can be placed in markup if it isn't using dynamic code. Also it helps to make changes effective without compiling the code. For example, in case of WAP, you have to recompile your website every time you make a change to javascript using code behind.