FineUI 官方论坛
标题:
HtmlEditor内文本增加格式化后,点击保存没反应了..
[打印本页]
作者:
小小程序员
时间:
2012-12-20 08:00
标题:
HtmlEditor内文本增加格式化后,点击保存没反应了..
如题,已经设置了页面:ValidateRequest="false" ,如果文本没有格式化就没问题,如果格式化了文本点击保存就没反应了。代码如下:
<x:Form ID="sf_Edit" ShowBorder="false" ShowHeader="false" EnableBackgroundColor="true"
AutoScroll="true" BodyPadding="25px 15px" runat="server" EnableCollapse="True">
<Rows>
<x:FormRow ColumnWidths="100%">
<Items>
<x:TextBox ID="txtTitle" ShowRedStar="true" Required="true" runat="server" Label="标题" MaxLength="100"></x:TextBox>
</Items>
<Items>
</Items>
</x:FormRow>
<x:FormRow ColumnWidths="50% 50%">
<Items>
<x:DropDownList ID="ddlType" runat="server" Label="活动分类"></x:DropDownList>
<x:DropDownList ID="ddlStatus" runat="server" Label="活动状态"></x:DropDownList>
</Items>
<Items>
</Items>
</x:FormRow>
<x:FormRow ColumnWidths="50% 50%">
<Items>
<x:TextBox ID="txtCompanyNM" runat="server" Label="主办单位"></x:TextBox>
</Items>
<Items>
<x:TextBox ID="txtObject" runat="server" Label="参与对象"></x:TextBox>
</Items>
</x:FormRow>
<x:FormRow ColumnWidths="50% 50%">
<Items>
<x:TextBox ID="txtPlace" runat="server" Label="活动地点"></x:TextBox>
</Items>
<Items>
<x:NumberBox ID="txtNumberPer" runat="server" Label="参加人数"></x:NumberBox>
</Items>
</x:FormRow>
<x:FormRow ColumnWidths="100%">
<Items>
<x:Panel ID="pnDtStar" ShowHeader="false" ShowBorder="false" Layout="Column" runat="server" EnableBackgroundColor="true" CssClass="x-form-item" >
<Items>
<x:Label ID="lblDtStart" runat="server" CssClass="dtLable" ShowLabel="false" Text="开始时间:"> </x:Label>
<x:DatePicker runat="server" Required="true" ID="dpStart" Width="110px"></x:DatePicker>
<x:TimePicker ID="tpStart" runat="server" Width="60px">
</x:TimePicker >
</Items>
</x:Panel>
</Items>
<Items>
<x:Panel ID="pnDtEnd" ShowHeader="false" ShowBorder="false" Layout="Column" runat="server" EnableBackgroundColor="true" CssClass="x-form-item" >
<Items>
<x:Label ID="lblDtEnd" runat="server" CssClass="dtLable" ShowLabel="false" Text="结束时间:"> </x:Label>
<x:DatePicker runat="server" Required="true" ID="dpEnd" Width="110px"></x:DatePicker>
<x:TimePicker ID="tpEnd" runat="server" Width="60px">
</x:TimePicker >
</Items>
</x:Panel>
</Items>
</x:FormRow>
<x:FormRow ColumnWidths="100%">
<Items>
<x:HtmlEditor runat="server" Label="详细内容" ID="txtBody" Height="250px" EnableFormat="true">
</x:HtmlEditor>
</Items>
</x:FormRow>
</Rows>
<Toolbars>
<x:Toolbar ID="tbr_Oper" Position="Bottom" runat="server">
<Items>
<x:ToolbarFill ID="tf_sb" runat="server"></x:ToolbarFill>
<x:Button ID="btn_Save" Text="保存" ValidateForms="sf_Edit" runat="server" Icon="TextRuler" OnClick="btn_Save_Click">
</x:Button>
<x:Button ID="btn_Return" Text="返回" runat="server" Icon="BulletGo" OnClick="btn_Return_Click">
</x:Button>
</Items>
</x:Toolbar>
</Toolbars>
</x:Form>
复制代码
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4