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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...dnn:texteditor doesndnn:texteditor doesn't give read Text on Postback?
Previous
 
Next
New Post
8/8/2008 2:13 AM
 

Hi all

 

I am using the dnn:texteditor control in a WAP developed module and doesn't get any information in the Text property on Postback (submit update button) ... is this a known problem?

I am using WAP DotNetNuke development and VS 2005 and DNN 4.08.02 and the code is taken straight out of the source code of the DotNetNuke.Announcements module .... I am thinking of the fact that DotNetNuke.Announcements module isn't a WAP developed module and as such this could be the fault? does that make any sence....

 <%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>

 

<dnn:texteditor id="teDescription" runat="server" width="550" height="300"></dnn:texteditor>

 

 

        Private Sub cmdUpdate_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cmdUpdate.Click
            Try
                ' verify data
                If Page.IsValid = True Then

                    Dim objAnnouncement As New AnnouncementInfo

                    objAnnouncement = CType(CBO.InitializeObject(objAnnouncement, GetType(AnnouncementInfo)), AnnouncementInfo)

                    ' populate object
                    objAnnouncement.ItemId = itemId
                    objAnnouncement.ModuleId = ModuleId
                    objAnnouncement.CreatedByUser = UserInfo.UserID
                    objAnnouncement.CreatedDate = Now
                    objAnnouncement.Title = txtTitle.Text
                    objAnnouncement.ImageSource = urlImage.Url
                    objAnnouncement.Description = teDescription.Text
                    objAnnouncement.Url = ctlURL.Url
                    objAnnouncement.PublishDate = Convert.ToDateTime(txtPublishDate.Text, Threading.Thread.CurrentThread.CurrentUICulture)

                    objAnnouncement.ExpireDate = Null.NullDate
                    If txtExpireDate.Text.Trim <> "" Then
                        Try
                            objAnnouncement.ExpireDate = Convert.ToDateTime(txtExpireDate.Text, Threading.Thread.CurrentThread.CurrentUICulture)
                        Catch
                        End Try
                    End If

                    If txtViewOrder.Text <> "" Then
                        objAnnouncement.ViewOrder = Convert.ToInt32(txtViewOrder.Text)
                    End If

                    ' add or update
                    Dim objAnnouncements As New AnnouncementsController
                    If Common.Utilities.Null.IsNull(itemId) Then
                        objAnnouncements.AddAnnouncement(objAnnouncement)
                    Else
                        objAnnouncements.UpdateAnnouncement(objAnnouncement)
                    End If

                    ' refresh cache
                    ModuleController.SynchronizeModule(ModuleId)

                    ' url tracking
                    Dim objUrls As New UrlController
                    objUrls.UpdateUrl(PortalId, ctlURL.Url, ctlURL.UrlType, ctlURL.Log, ctlURL.Track, ModuleId, ctlURL.NewWindow)

                    ' redirect back to page
                    Response.Redirect(NavigateURL(), True)

                End If
            Catch exc As Exception
                ProcessModuleLoadException(Me, exc)
            End Try
        End Sub

 

It gives blank property on teDescription.Text even though I am as a user putting in value there

 

/Johan

Lagerbolag

Nätdejting

 
New Post
8/8/2008 7:31 AM
 

Please see my replies (particularly the second one) in this forum thread:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/127/threadid/222052/scope/posts/Default.aspx

 


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...dnn:texteditor doesndnn:texteditor doesn't give read Text on Postback?


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