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...Delving into module development with the Starter Kit - issuesDelving into module development with the Starter Kit - issues
Previous
 
Next
New Post
12/22/2010 9:50 AM
 
cathal connolly wrote:
Marc, I'd recommend using Chris's module development templates -  
Thanks for the tip. I viewed the first video already and it looks promising.

____________________________________
The one-eyed in the land of the blind.
 
New Post
12/22/2010 10:46 PM
 
Well, I have tried Chris' templates. I think that, once I understand the procedures more clearly, Chris'templates may be the preferred ones.

But right now, I am going through the next chapters in the WROX book, about the data layer, and then I will try to understand the business logic layer. This is missing with Chris' templates. The Christoc templates give a completly empty project. Where I am now in my learning curve, I appreciate the code in the Starter Kit very much because it gives me a basis to continue my efforts.

There are a few differences between the two approaches. The WROX strategy spends a lot of time and effort explaining how to include the company name in the setup of your solution. The Christoc templates skip over this procedure, with a different structure of the sources as result and with most likely differences in the underlying code that may be evident for the experienced developer, but daunting for the beginner.

So, at this point in time, I will rather stick with the Starters Kit and WROX manual. There is actually not so much outdated in the chapter Beginning Module Development. There is one modification in the SqlDataProvider file. The other problem I had is because WROX manual is unclear on one point.

After  the creation of the DataProviders project, the book states that errors will go away when you compile the solution. They do not. The errors go away when you replace all occurrences of YourCompany.

"Open one of your companies" the book states, "(for example ViewFirstModule.aspx) and search the entire solution for the YourCompany placeholder and replace it. There was only one occurrence in ViweFirstModule.aspx. Changing that one occurrence caused a list of errors. Of course, the aspx file is not the same thing as the code page in Windows Forms development, is is more like the hidden design page.

The replacement of "all occurrences" should happen in the ViewFirstModule.ascx.vb file and that was not clear in the book. Just a suggestion, for when somebody reworks the book to become Professional DotNetNuke 5.9 or anything alike...

Today, I attack the data layer. Stay tuned for my comments.

____________________________________
The one-eyed in the land of the blind.
 
New Post
12/23/2010 9:27 AM
 
Marc, FYI the dnnbuilda tool (http://dnnbuilda.codeplex.com/) is a useful way of prototyping and understanding how the datalayer is built (it also does BLL and UI as well).Please note, the provider model is just one way to do database, other approaches such as DAL+ (http://adefwebserver.com/dotnetnukehelp/DNN_Things4Sale/) or Linq http://www.dotnetnuke.com/Resources/Wiki/tabid/1409/page/DotNetNuke-5-Using-a-Database/Default.aspx?From=DotNetNuke-5-Using-a-Database) are equally valid.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/24/2010 2:01 PM
 
Nice tool, dnnbuilda, but it has far too much features for what I need yet too limited in the applications it produces. But as a learning tool, it is great. My SQL practice was a bit rusty, and this helped me dust-off my recollection. Maybe I should play around with it a little more, just to see if it gives me new ideas.
 
Anyway, I think I've got the dataprovider part setup without notable trouble. The dataprovider system is much easier than I had feared. I had quite some trouble finding a way to get at the current culture of the page. I had setup my database in the expectation that I would have been able to provide a pointer into the table dbo.Languages and I had to rework it all to use a char(5) column. But that will work just as well for what I had in mind.

Tomorrow the business logic part. I hope to start up the counter as Newyear midnight.

____________________________________
The one-eyed in the land of the blind.
 
New Post
12/26/2010 4:29 AM
 
Anyone wanting to know how the self-training project is proceeding? Yesterday, I spent most of the day, researching why VS2008 did nor want to load my debug symbols. Seems a common occurrence in web development, of which windows forms programming has been spared.

I found many suggestions on the internet as to its cause and there seem to be many reasons for this error to happen, so I had to work out a procedure that does the trick for me. What I end up doing for each time I must recompile my sources is to first delete all my files from the bin folder (except the main dll, otherwise the separate sqldataprovider dll does not find its references). Then I compile the solution. After that, I quit VS, delete the obj folders from my project and open VS again. Then, I can attach to the process and VS will find the debug symbol files.

But all this is not related to DNN itself. I think the cause of my problems lies in the way, VS was setup, a couple of years ago. You get a choice of templates for languages and applications. As two years ago, I was programming for Windows Forms, I must have made some choices that now cause the obstructions.

The basics of the counter work, the hitcounter controler and the hitcounter info do their jobs. The information from the WROX book has proven very valuable. I have no comments on the buisness logic layer nor the presentation layer. I still have to make the edit and settings controls, but I've got the procedure under control by now.

It looks like the counter will indeed be up and running by new year.

____________________________________
The one-eyed in the land of the blind.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Delving into module development with the Starter Kit - issuesDelving into module development with the Starter Kit - issues


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