Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0texteditor loses value on settings control of module!texteditor loses value on settings control of module!
Previous
 
Next
New Post
12/10/2007 3:54 AM
 

I have a dnn:texteditor on my settings control, but the problem is that it's .Text property is always empty, it looks like it gets erased always.

this is the page code:

<%@ Control Language="vb" AutoEventWireup="false" CodeFile="Settings.ascx.vb" Inherits="PortalSub.Modules.Register.Settings" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>

<table cellspacing="0" cellpadding="2" border="0" summary="Register Settings Design Table">
    <tr>
        <td class="SubHead" width="150"><dnn:label id="lblTemplate" runat="server" controlname="txtTemplate" suffix=":"></dnn:label></td>
        <td valign="bottom" >
            <asp:DropDownList ID="dpdLanguages" runat="server" AutoPostBack="True"></asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="SubHead" width="150"><asp:Label ID="lblThanks" runat="server" resourceKey="thanks" /></td>
        <td><dnn:TextEditor ID="txtThanks" runat="server" Height="500" /></td>
    </tr>
</table>

There's a dropdown that autopostbacks, because when the language is changed I want to change the value of the texteditor, since I want it to be multilanguage.

Any help please?

 
New Post
2/14/2008 5:03 AM
 

onishiro, where you able tyo solve the problem?

Is is possible the use the dnn:TextEditor in the settings user control?

My dnn:TextEditor work fine within my module, but for some reason when I place the dnn:TextEditor on the setting user
control and select update DNN will not save new html data.

If the TextEditor (FCK) is set to 'Basic Text Box' when selecting update it will save my data, but if the TextEditor is set to 'Rich Text Editor' and then select update, it will save the data it was assigned in LoadSettings() But, If I have a postback event (add a asp:Button) without any event attached to it and press the asp:button before selecting 'update' the updated HTML from the dnn:TextEditor  will be saved.

It seems to be grabbing the data from the viewstate or something but can't work it out.

any ideas on how to solve this?

Many thanks for any assistance.
Simon

VB:
Public Overrides Sub LoadSettings()
            Try
                If (Page.IsPostBack = False) Then
                    Dim te As New DotNetNuke.UI.UserControls.TextEditor()
                     te = FindControl("txthtml")
                    te.Text = CType(TabModuleSettings("html"), String)
                End If
            Catch exc As Exception           'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
        End Sub
  
   Public Overrides Sub UpdateSettings()
            Try
                objModules.UpdateTabModuleSetting(TabModuleId, "html", Me.txthtml.Text)
            Catch exc As Exception           'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
        End Sub
  
ASCX Page:
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<dnn:TextEditor ID="txthtml" runat="server" Height="350px" Width="100%"  />

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0texteditor loses value on settings control of module!texteditor loses value on settings control of module!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out