All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
New to Telerik UI for ASP.NET AJAX? Download free 30-day trial
You can save the RadEditor content in an external text or HTML file as well as load the content from an external file in the editor by following the instructions below:
<%@ Page Theme="Default" Language="vb" Debug="true" AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb"Inherits="Telerik.Web.Examples.Editor.SaveInExternalFile.DefaultVB" %> <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %> <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml'> <head runat="server"> <title>Telerik ASP.NET Example</title> <link href="../Common/styles.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" /> <telerik:RadFormDecorator RenderMode="Lightweight" runat="server" ID="FormDecorator1" DecoratedControls="Buttons" /> <div class="demo-containers"> <div class="demo-container"> <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1"> <asp:Button ID="Button1" runat="server" Text="Save to File" OnClick="Button1_Click1"></asp:Button> Test.html will be open in a new window <br /> <br /> <telerik:RadWindow RenderMode="Lightweight" Title="Saved content" NavigateUrl="test.html" VisibleOnPageLoad="false" ReloadOnShow="true" Skin="Default" runat="server" Behaviors="Maximize,Close,Move" ID="RadWindow1" VisibleStatusbar="false" Width="700px" Modal="true" Height="500px"> </telerik:RadWindow> </telerik:RadAjaxPanel> <telerik:RadEditor RenderMode="Lightweight" runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" Width="735px"> </telerik:RadEditor> </div> </div> <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"> </telerik:RadAjaxLoadingPanel> </form> </body> </html>