- Home
- Forum
- ASP.NET Web Forms
- Getting RTE Value
Getting RTE Value
Hello,
I am trying to get the contents of the rich text editor (RTE1) from the code behind on submission of a form. However, on form submission RTE1.Value is always null.
How can I get the contents?
SIGN IN To post a reply.
5 Replies
PO
Prince Oliver
Syncfusion Team
December 14, 2017 06:15 AM UTC
Hi Suzanna,
Thank you for contacting Syncfusion forums.
We can access the RTE’s value in the code behind using the Value property. Kindly refer to the following code snippet.
[aspx]
|
<ej:RTE ID="ToolsSample" runat="server" >
<RTEContent>
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
</RTEContent>
</ej:RTE>
<input type="submit" value="submit" /> |
[aspx.cs]
|
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack) {
var RTEcontent = ToolsSample.Value; //access the value here using control’s ID
}
} |
We have prepared a sample for your reference, please find the sample from the following link: http://www.syncfusion.com/downloads/support/forum/135045/ze/RTEpostVal2128845758
Regards,
Prince
SB
Suzanna Bentley
December 14, 2017 01:19 PM UTC
Hello again,
Thanks for your quick reply. After looking at your sample I realized I was missing ej.webform.min.js.
After adding this to my solution, everything is working fine.
Thanks!
PO
Prince Oliver
Syncfusion Team
December 15, 2017 04:44 AM UTC
Hi Suzanna,
Most Welcome. We are glad that your issue is resolved.
Regards,
Prince
Hello again,Thanks for your quick reply. After looking at your sample I realized I was missing ej.webform.min.js.After adding this to my solution, everything is working fine.Thanks!
Thanks a lot, I had the same problem and your reply helped me to resolve it!
MK
Muthukrishnan Kandasamy
Syncfusion Team
October 9, 2020 05:15 AM UTC
Hi Taras,
Thanks for the update.
We are glad to know that, your issue resolved. Please let us know, I you need any further assistance.
Regards,
Muthukrishnan K
SIGN IN To post a reply.
- 5 Replies
- 4 Participants
-
SB Suzanna Bentley
- Dec 13, 2017 09:14 PM UTC
- Oct 9, 2020 05:15 AM UTC