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.0TextEditorTextEditor
Previous
 
Next
New Post
3/27/2007 10:46 AM
 
Hi,

Did anyone tried to use the DNN text editor in there module by using this.Controls.add(TextEditor)?

cause i cannot make it work like that.. :S

Anyone can help

Regards
 
New Post
3/28/2007 7:47 AM
 

Paste the exact code your using, and go a little bit more in detail about what is not working if you want people to help you.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
3/28/2007 8:01 AM
 
Hi Vladan,

sorry for my lack of information...basically what i have is this

i have a class that inherits from System.Web.UI.UserControl and when the constructor is called...

a table is created and in one cell the TextEditor is being added

Cell.Controls.Add(textEditor)

On formload it gives this error

An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.UserControls.TextEditor.PopulateLists() at DotNetNuke.UI.UserControls.TextEditor.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

i used this control in another module but what i did is that the control was added to the page already...

in this module i am adding the control at runtime but not calling it directly...i am calling a user control that returns the text editor...

hope this information is enough :) thanks for ur help :)
 
New Post
3/28/2007 8:06 AM
 

That's ok

Sounds like a problem with the fact that you are inheriting a UserControl instead of PortalModuleBase or ModuleSettingsBase.

Probably the Editor is internally using some functionality of the base class which is not available in your base class (UserControl).

Did you already try the same scenario directly in a DNN control? Also, I think they have now UserControlBase for their user controls (check out Label control and other ascx controls), so that might work as well.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
4/2/2007 5:58 AM
 
Hi Vladan,

I tried to create the TextEditor at Runtime in a DNN Control ...

The result was the same

this was my code

TextEditor m_TxtBox = new TextEditor();

this.Controls.Add(m_TxtBox);

The error is the same (Object not set to an instance of an object in populatelists() )

i hope im doing something wrong :P

Regards
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0TextEditorTextEditor


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