How to use editor control in asp.net?

aswinialuri-19361
Posted by aswinialuri-19361 under ASP.NET AJAX category on | Points: 40 | Views : 3653
In .aspx code:
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Editor ID="Editor1" runat="server" Height="100px" Width="100%" ActiveMode="Design" AutoFocus="true"/>
<hr />

<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
<h1>You Entered:</h1>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
</div>
</form>
</body>
In .aspx.cs code

Click Event:
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = Editor1.Content;
}

i hope it will help you

Comments or Responses

Login to post response