PDA

View Full Version : [CLOSED] HtmlEditor submit value empty



prost
Jan 30, 2013, 10:25 AM
Hi,

Why is the Text value of a HtmlEditor not submitted to codebehind?

I use Ext.NET version: 2.1.0.37456

Thanks,
Sander



<%@ Page Language="C#" EnableViewState="true" %>


<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<script runat="server">


public void OnSubmitBtnClick(object sender, DirectEventArgs e)
{
X.Msg.Show(new MessageBoxConfig
{
Title = "Note value submitted",
Message = Note.Text,
});
}


</script>


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>HTML Editor submit test</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<form id="Form1" runat="server">
<ext:FormPanel ID="Panel" runat="server"
Height="200"
Layout="FitLayout">
<Items>
<ext:HtmlEditor ID="Note" runat="server" />
</Items>
<Buttons>
<ext:Button ID="SubmitBtn" runat="server"
Text="Submit">
<DirectEvents>
<Click OnEvent="OnSubmitBtnClick" />
</DirectEvents>
</ext:Button>
</Buttons>
</ext:FormPanel>
</form>
</body>
</html>

Daniil
Jan 30, 2013, 12:02 PM
Hi Sander,

Thank you for the report. It has been fixed in SVN trunk.

The fix will be publicly available with the next release.

prost
Jan 30, 2013, 2:15 PM
Problem fixed, Thx!