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.0Beginner questionBeginner question
Previous
 
Next
New Post
9/11/2006 4:14 PM
 
Sorry for such a beginner question but here it is:

I would like to use C# to create a module.  I can read and understand VB just fine, but I don't personally want to start getting used to writing it again because I tend to hold onto keywords that end up being mixed up between C# and VB.NET thrown all about my code.

I like how the starter kit allows you to DNN module template in the new item dialog box.  However, can someone point me to an URL or help me out here and show me how I would be able to use this template in c#? If I choose add a new item and then Choose c# as the language, I get a compile error about the version language.  Obviously I can't do that.  I'm guessing I need to copy these .CS files into another project separate from the main DNN VB project? And then what?

Thanks for the help in advance!  Very much appreciated!
 
New Post
9/12/2006 12:54 PM
 
I've figured this out myself.  And, since you all were so helpfull :)  I have also changed the template so it works.  I've also made a few of the classes partial classes in the template so that you can keep your code seperate from dnn's template code.   Kinda keeps it cleaner for you.

Replace C:\Documents and Settings\%yourusername%\My Documents\Visual Studio 2005\Templates\ItemTemplates\Visual Web Developer\CSharp\Module_CS.zip with this file:  www.husko.net/module_cs.zip

Make sure the folder only has the .zip (template) files you plan on using.  Any zip files in this directory will be listed in the new item template dialog box in Visual Studio.  So if you see multiple templates in the dialog, you know what to do.

Hope this helps someone else.

-Steve Huskey
 
New Post
9/12/2006 8:02 PM
 

As far as installing the Starter Kit, check out:

http://pdmlogin.com/StarterKitInstall/tabid/77/Default.aspx

Are you trying to migrate or create a C# module into 4.3.4?  If so you must tell the compiler that you are using C# by adding the Name of your module (located in the App_code folder) into the web.config file:

<!-- register your app_code subfolders to generate granular assemblies during compilation -->
      <codeSubDirectories>
         <add directoryName="ModuleName"/>
      </codeSubDirectories>

 

-Mark

 
New Post
9/13/2006 10:41 AM
 
I forgot to mention that part too.   That was the main reason why it was failing in the first place.  I guess I should have read  the directions on the page that pops up after adding the template
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Beginner questionBeginner question


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