or
My Editor background is using my site's background. Ugh.
http://www.telerik.com/help/aspnet-ajax/editor-content-area-appearance-problems.html
I want to override. I've looked this up and I find code-in-front but want to use codebehind. It should be something like this, but this says the EditorCssFile is not part of the collection.
myEditor.CssFiles.EditorCssFile = resolvePath & "Scripts/RadEditorStyleSheet.css"RadEditor1.CssFiles = New String(2) {"~/styles/1.css", "~/styles/2.css"}

Protected Sub RadDockLayout1_LoadDockLayout(ByVal sender As Object, ByVal e As DockLayoutEventArgs) Handles RadDockLayout1.LoadDockLayout 'Populate the event args with the state information. The RadDockLayout control ' will automatically move the docks according that information. 'If isNeedReload Then Dim state As DockState Dim intIndex As Integer Dim serializer As Script.Serialization.JavaScriptSerializer = New Script.Serialization.JavaScriptSerializer() Dim stateList As List(Of DockState) = Me.RadDockLayout1.GetRegisteredDocksState() If Not stateList Is Nothing Then For Each state In stateList e.Positions(state.UniqueName) = state.DockZoneID e.Indices(state.UniqueName) = state.Index Next End If End If End Sub Protected Sub RadDockLayout1_SaveDockLayout(ByVal sender As Object, ByVal e As DockLayoutEventArgs) Handles RadDockLayout1.SaveDockLayout Dim strMethodName As String = Me.strClassName & "RadDockLayout1_SaveDockLayout" Try Dim stateList As List(Of DockState) = Me.RadDockLayout1.GetRegisteredDocksState() //on stateList , the dock index changed ???? End sub Protected Sub RadComBoxView_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComBoxView.SelectedIndexChanged Dim strMethodName As String = Me.strClassName & "RadComBoxView_SelectedIndexChanged" Try If Not Me.RadComBoxView.SelectedItem Is Nothing Then 'reset SystemUserWidgetID SystemUserWidgetID = -1 Me.CurrentViewTypeID = Me.RadComBoxView.SelectedItem.Value 'need to load WidgetState based on viewid Me.GetUserWidgetState() CreateWidgetStates() End if End Sub<telerik:RadComboBox ID="RadComboBox1" Runat="server" Width="300" AppendDataBoundItems="True"> <ItemTemplate> <div class="item c1"><asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("URLImage") %>' /></div> <div class="item c2"><%# Eval("Imagename") %></div> </ItemTemplate></telerik:RadComboBox>RadComboBox1.DataSource = getimages()Function getimages() As List(Of Fotos) Dim ofile, foto Dim ObjetoFSO = Server.CreateObject("Scripting.FileSystemObject") Dim ObjetoFolder = ObjetoFSO.GetFolder(Server.MapPath("../images/works")) Dim ofotos = New List(Of Fotos) For Each ofile In ObjetoFolder.Files foto = New Fotos() foto.Imagename = fichero.name foto.URLImage = ResolveUrl("~/Images/works/thumbs/" & ofile.name) ofotos.Add(foto) Next file= Nothing ObjetoFolder = Nothing ObjetoFSO = Nothing Return ofotosEnd Function<%@ Page Language="VB" %><%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) RadEditor1.ExportToPdf() End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) If IsPostBack = False Then RadEditor1.DisableFilter(Telerik.Web.UI.EditorFilters.DefaultFilters) RadEditor1.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertToXhtml) End If End Sub</script><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <telerik:RadEditor ID="RadEditor1" Runat="server" ContentFilters="DefaultFilters,PdfExportFilter"><ExportSettings Pdf-PageBottomMargin="10px" Pdf-PageFooterMargin="0px" Pdf-PageHeaderMargin="0px" Pdf-PageLeftMargin="10px" Pdf-PageRightMargin="10px" Pdf-PageTopMargin="10px" OpenInNewWindow="true" > <Pdf PageTopMargin="10px" PageBottomMargin="10px" PageLeftMargin="10px" PageRightMargin="10px" PageHeaderMargin="0px" PageFooterMargin="0px"></Pdf></ExportSettings><Tools><telerik:EditorToolGroup></telerik:EditorToolGroup></Tools><Content></Content></telerik:RadEditor> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /></div> </form></body></html><table width="300px"> <colgroup> <col style="200px" /> <col style="20px" /> </colgroup> <tr> <td>Cell1</td> <td>Cell2</td> </tr></table><table style="width: 0px;" width="300px"> <colgroup> <col style=""> <col style=""> </colgroup> <tbody><tr> <td>Cell1</td> <td>Cell2</td> </tr></tbody></table>
public static byte[] GetAccommodationMainImage(int accomID){ byte[] image = null; using (var myEntity = new MyEntity1()) { var photoRecord = (from accom in myEntity.WTO_Photos where accom.accom_id == accomID && accom.in_use_as_main == true select accom).First(); image = photoRecord.image; } return image;}