Load ASPX code into Editor for editing??

1 posts, 0 answers
  1. Aron
    Aron avatar
    77 posts
    Member since:
    Dec 2005

    Posted 19 Aug 2009 Link to this post

    I would like to be able to load pure aspx code into the editor for minor editing and then save it back to the db.
    However the aspx code is getting garbled in the editor.

    my page's aspx
      <telerik:RadEditor ID="RadEditor1" runat="server" Width="100%" AllowScripts="true" 
                            Height="700px" EditModes="Html" ToolbarMode="ShowOnFocus" /> 

    the code behind:
                RadEditor1.Content = AspxCodeFromDB; 

    Appears like this in the editor:
      &lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="FrontMasterPage" ClassName="FrontMasterPage"  %&gt; 
            &lt;%@ Register src="MasterPages/Controls/Blackberry/Footer.ascx" tagname="Footer" tagprefix="uc2" %&gt; 
            &lt;%@ Register src="MasterPages/Controls/Blackberry/Header.ascx" tagname="Header" tagprefix="uc2" %&gt; 
            &lt;%@ Register src="MasterPages/Controls/Cal.ascx" tagname="Cal" tagprefix="uc2" %&gt; 
            &lt;%@ Register src="MasterPages/Controls/Blackberry/Categories.ascx" tagname="Categories" tagprefix="uc2" %&gt; 
            &lt;%@ Register src="MasterPages/Controls/Blackberry/Search.ascx" tagname="Search" tagprefix="uc2" %&gt; 

Back to Top