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.0StarterKit C# ModuleStarterKit C# Module
Previous
 
Next
New Post
7/26/2006 3:17 AM
 

I just love when things work out like this :)

I hope that all problems get solved as easily as this one has.


Ok, seriously now... I am glad that it's working ok for 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
7/26/2006 3:46 PM
 

I used the starter kit to make a new C# module. A couple things were not listed in the welcome page when you create the module.

Besides having to rename the folders from 'ModuleName' to whatever your module is and adding the subdirectory to the web.config, I found that I had to do the following:

in my ViewModuleName.aspx.cs file, I had to change the '&'s to '+'s in the final if statement. but that's not all, you also have to wrap that whole if statement in another statement:

if (strContent != null)

{

if (strContent.IndexOf("[" + objPropertyInfo.Name.ToUpper() + "]") != -1)

{

strValue = Server.HtmlDecode(DataBinder.Eval(e.Item.DataItem, objPropertyInfo.Name).ToString());

strContent = strContent.Replace("[" + objPropertyInfo.Name.ToUpper() + "]", strValue);

}

}

i find it odd that the C# code included &'s.

anyways, hope that helps. i just made my first c# module in DNN 4.3.3. I named it MyFirstModule. ahahah, okay back to work.

 
New Post
7/27/2006 6:31 AM
 

Congrats sskassam,

glad to see you've managed it!

 

 


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
7/27/2006 9:36 PM
 
Well the issue with the c# starterkit is obviously as you described it sskassam,

a) create two subfolders for the cs and vb code in the app_code dir
b) add those two folders to the web.config at the <codesubdirectories> section
c) exchange the "&" string concatination with "+"

Then it actually DOES compile

@Vladan: unfortunately I had those nerve-wrecking path errors again when I tried to use your BlankMod as basis for a C# module so I decided to try my luck with the startetkit template again
 
New Post
7/28/2006 2:44 AM
 

Tillman,

Good luck with the StarterKit


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

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0StarterKit C# ModuleStarterKit C# 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