This is a migrated thread and some comments may be shown as answers.

Load ASPX code into Editor for editing??

0 Answers 28 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Aron
Top achievements
Rank 2
Aron asked on 19 Aug 2009, 02:35 PM
Hello,
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; 

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Aron
Top achievements
Rank 2
Share this question
or