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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Wanted to add custom code in Wiki ModuleWanted to add custom code in Wiki Module
Previous
 
Next
New Post
3/17/2011 1:37 AM
 
Hello Friends,

I am new to DotNetNuke. I wanted to add my own custom code in the Wiki Module. I don't see the code behind files anywhere in the Wiki module.
How can I add my own custom code in the existing Wiki module (Not only in wiki module - any module).

Any help will be appreciated.

Thanks,
Sowrirajan
 
New Post
3/17/2011 4:44 AM
 
Hi Sowrirajan, I can direct you to here http://www.dotnetnuke.com/Resources/Downloads/ProjectsDownloads/tabid/1373/Default.aspx (note the text headed 'Where is the source code?). Hope that helps!
 
New Post
3/17/2011 7:44 AM
 
Hi Pingle,

Thanks a lot ...It has helped me to get an idea to write custom code in the existing module.

After installing the downloaded Wiki module I am able to see the code behind files. But, the code behind files show some error on the controls like "Name 'label2' is not declared" but the label2 is defined in the front end (.ascx file).

If I go to design view and double click any controls it generates the server code in the front end page itself (.ascx file) not in the code behind which is declared in the file.

It would be great if you give me some idea on this.

Thanks
Sowrirajan
 
New Post
3/18/2011 4:06 AM
 
Hi Sowrirajan, that problem will need someone much more knowledgeable than me! Hopefully someone will come along soon. Good luck!
 
New Post
3/18/2011 9:17 AM
 
The Wiki source package appears to be set up as a typical source package and has a solution and project file for Visual Studio 2008 so I'm not sure what is causing code changes to be made in the .ascx file. I have seen cases where the linkage between .ascx, .ascx.designer.vb, and ascx.vb files get mixed up causing DNN user controls such as the dnn:label not to be seen by the code-behind. This is usually due to the Visual Studio project not "seeing" the DotNetNuke user controls due to missing references or an incorrect pointer to the DotNetNuke website in which the project is being developed.

Are you using Visual Studio 2008 or 2010 to edit and re-compile the changes that you have made?

Have you checked that the project's references (in particular to the DotNetNuke.dll asssembly) are properly resolved?

Have you updated the IIS web propertyt settings in the project file to point to the location of the DotNetNuke website being used to further develop the Wiki module?  In the project file included in the Wiki source package, the IIS Project Url points to localhost/dotnetnuke_2/desktopmodules/wiki and the IIS Override Application Root Url points to localhost/dotnetnuke_2. Unless your DotNetNuke development installation is also at localhost/dotnetnuke_2, those two pointers will need to be changed.

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
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Wanted to add custom code in Wiki ModuleWanted to add custom code in Wiki 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