How to use editor control in

Posted by aswinialuri-19361 under ASP.NET AJAX category on | Points: 40 | Views : 3378
In .aspx code:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<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>
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