Rexxrally
Registered:1209941370 Posts: 244
Posted 1328829002
Reply with quote
#1
I'm upgrading an old app from ISD 6.1.1 to 9.0.1. Somewhere along the way (between ISD 6 and 9), HTML files went away. Consequently, my code didn't compile as VS2010 complained about the lack of client side Javascript in my app. I copied the client side Javascript from the abandoned HTML file into the ASPX file, compiled, and now I get this error:Only Content controls are allowed directly in a content page that contains Content controls I have 2 functions in the Javascript: function submitbutton_click function CuteWebUI_AjaxUploader_OnPostback both functions handle events for page controls, obviously. Has anybody seen this problem? What do I do now? How and where do you put client side Javascript into an ISD 9.0.1 app? Thanks
SamHughes
Registered:1327064127 Posts: 9
Posted 1329234812
Reply with quote
#2
Dave, Try right clicking on the page and selecting PAGE DIRECTIVES. Here you can add links to external files or even JavaScript code blocks. If it is a change you want globally, add it to the master page, if it is only for specific pages, then do this just on these pages. Hope this helps.
__________________ Samantha