<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" EnableEventValidation="false" ValidateRequest="false" Trace="false"%> <!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><%
@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %><%
@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="HTMLEditor" %><
html xmlns="http://www.w3.org/1999/xhtml"><
head runat="server"> <title>Untitled Page</title></
head><
body> <form id="form1" runat="server"><
div> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <script type="text/javascript"> </script> <asp:UpdatePanel ID="updatePanel1" runat="server"> <ContentTemplate> <HTMLEditor:Editor runat="server" Id="editor" Height="300px" AutoFocus="true" Width="100%" /> <br /> <asp:Button runat="server" Text="Submit content" ID="submit" onclick="submit_Click" /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> </ContentTemplate> </asp:UpdatePanel> </div> </form></
body></
html>
1 comment:
Hi there,
How do i read the value from the editor control if the postback is on the same page or on a separate page to save the content in the database.
Also, how to read the value on the client side in javascript.
I tried request.form["editorcontrol"], but i
Thanks a bunch
Post a Comment