DotNetNuke TextEditor Tips

I’ve started a new Visual Studio 2010 DotNetNuke Module project recently. After spending weeks on the SQL and Data Access Layer I began working on the User Controls.

The first control was the DNNTabStrip and it worked flawlessly. Next I added a TextEditor control and then strange things happened.

  1. There was no intellisence in the HTML or in the Code Behind.
  2. Everytime I changed the HTML the *.designer.cs file would change my TextEditor declaration to a “System.*.*” name space which breaks the Control until I put it back.

The solution to #1 was EASY… I had forgotten to setup the project properties. (Under Properties -> Web -> Servers, set it to use Local IIS and set the Project URL to the full URL of your project (*/DesktopModules/Project) and then override the applocation root to be the DNN Install.

Once I had done this, intellisense worked nicely =D

For #2, I surfed the web searching and found temporary solutions and then I just tried another…

Both the Code.ascx.designer.cs and Code.ascx.cs both implement the same class so why not just move the control from the designer file to the code behind.

After I have done this, it quit attempting to change it since it was already declared.

I doubt it’s the proper fix but it beats changing it on EVERY edit of the HTML.

Comments are closed.