The CKEditor and SyntaxHighlighter components work as presented in web forms that do not use master pages or user controls. Here, you will learn how to enable them for use in these situations.

.

Control ID naming information

When an ASP.NET web server control, or an HTML control with runat=”server”, is placed on a web form (page) that does not use a master page, its rendered “id” attribute value matches the ID property name.

However, when it is placed on a content page in a master page scenario, or in a user control, the rendered “id” attribute value gets a prefix that designates its place/location in the control hierarchy. (If the control has a “name” attribute, its value also gets a prefix.)

You can see the prefixes if you run the example page in a browser, and view the source code.

For example, when our editor instance, “editor1”, is placed on a content page that has a master page, its attributes get “ctl00” and “ContentPlaceHolder1″ prefixes: