Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML editor gives empty value in code behind after postback
    primarykey
    data
    text
    <p>I have multy control and a <a href="http://htmleditor.codeplex.com/" rel="nofollow">HtmlEditor</a> in the page.</p> <pre><code> &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always"&gt; &lt;Triggers&gt; &lt;asp:PostBackTrigger ControlID="SaveButton" /&gt; &lt;/Triggers&gt; &lt;ContentTemplate&gt; &lt;cc1:TabContainer CssClass="visoft__tab_xpie7" runat="server" ID="tab" ActiveTabIndex="0" Width="100%" Font-Size="11px"&gt; &lt;cc1:TabPanel runat="server" HeaderText="اطلاعات پایه" ID="TabPanel1"&gt; &lt;ContentTemplate&gt; &lt;div class="row"&gt; &lt;span style="width: 100px" class="rowtitle"&gt;Category&lt;/span&gt; &lt;asp:DropDownList ID="CategoryDropDownList" runat="server" Width="200px" AutoPostBack="True" DataTextField="Name" DataValueField="ID" OnSelectedIndexChanged="CategoryDropDownList_SelectedIndexChanged" /&gt; &lt;asp:RequiredFieldValidator ID="CategoryRFV" runat="server" ControlToValidate="CategoryDropDownList" ForeColor="Red" ValidationGroup="Save" ErrorMessage="مجموعه را انتخاب کنید." Text="*" /&gt; &lt;/div&gt; &lt;div class="row" style="height: 300px"&gt; &lt;span style="width: 100px" class="rowtitle"&gt;توضیحات کامل&lt;/span&gt; &lt;editor:HtmlEditor Style="float: left" runat="server" Width="600px" ID="DescriptionHtmlEditor" /&gt; &lt;asp:RequiredFieldValidator Text="*" ID="DescriptionRFV" runat="server" ControlToValidate="DescriptionHtmlEditor" ForeColor="Red" ValidationGroup="Save" ErrorMessage="توضیحات را وارد کنید ." /&gt; &lt;/div&gt; &lt;/ContentTemplate&gt; &lt;/cc1:TabPanel&gt; &lt;/cc1:TabContainer&gt; &lt;div class="row" style="text-align: center"&gt; &lt;asp:Button ID="SaveButton" class="button" Width="100px" OnClick="SaveButton_Click" runat="server" ValidationGroup="Save" Text="ذخیره" /&gt; &lt;/div&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>All controls are located inside an UpdatePanel.</p> <p>when i was trying to access the HTML editors text property after a partial postback of an updatepanel, it was empty.</p> <pre><code> protected void OrderImageDropDownList_SelectedIndexChanged(object sender, EventArgs e) { string description= DescriptionHtmlEditor.Text;//value is empty. } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload