Backend display of user control does not match the front end.
I created a user control that uses a repeater to output an unordered list for use with a jQuery gallery plugin. I am using the JavaScriptEmbedControl to add the needed jQuery scripts to the Head. Everything works and looks fine on the front end. When I view the page in the backend I notice that the control just renders as an unordered list and if I view the source I do not see any of the linked jQuery or Css files for that control. I would prefer, if possible, that the control render exactly as it does on the front end.
Any ideas on what I might be missing?
Hi Stacey,
JavaScriptEmbedControl does not render any scripts when you are in edit mode. The reason behind this is that when you open a page for editing and drop a control on it, you cannot change the head tag of a page.Basically you need to refresh the entire page so you will get the script loaded on it.
Regards,
Ivan Dimitrov
the Telerik team