Help On Using Editor in C#

Posted by Vijayar under C# on 12/23/2011 | Points: 10 | Views : 712 | Status : [Member] | Replies : 3
Hi
I am using Html Editor in order to enter description.When i click on save button additional <br/> is also saved into database
.The <br/> tag is displayed even in front end while binding to grid .How to rectify this one.I am using the following register
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
TagPrefix="cc2" %>
<tr>
<td align="left" style="width:200px">
<asp:Label ID="lblfine" runat="server" Text="Fine Details"></asp:Label>
</td>
<td align="left" colspan="2">
<cc2:Editor ID="txtfine" runat="server" Height="200px"
onkeyup="return textMaxLength(this, '100', event);" Width="400px" />
<%-- <asp:RequiredFieldValidator ID="rfvfine" runat="server" ControlToValidate="txtfine"
ErrorMessage="Enter Fine Details" ForeColor="Red"></asp:RequiredFieldValidator>--%>
</td>
</tr>

vijaya


Responses

Posted by: Vuyiswamb on: 12/30/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
In this code there is no Break tag, where is the grid you are talking about ?

Thank you for posting at Dotnetfunda
[Administrator]

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 1/2/2012 [Member] Bronze | Points: 25

Up
0
Down
hi.

I think you have enter key after type the data i.e at the end of the typing in text editor.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayar on: 1/2/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
I have placed a grid to show the entered records in the same page.while diaplaying in grid i am getting <br/> tag

vijaya

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response