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...Administration ...Administration ...Help needed in Uploading modulesHelp needed in Uploading modules
Previous
 
Next
New Post
5/6/2006 9:52 AM
 

Hi all

   I just recently installed DotNetNuke and i must say it is a wonderful project especially coming from a Java Back ground. I have a project that would employ the use of DotNetNuke, i have added my module to the DotNetNuke solution, i employed the use of code smith to autogenerate the necessary DataProvider,SqlDataProvider and the controller class. My questions go thus:

1) Is it a good idea to make use of code smith, as it autogenerates loads of stuff i usually dont make use.

2)If i am to develop a module that would make use of two tables and i am to autogenerate a controller class(using code smith), i realise that i can only do it for one table, and i figure out that only on table can be a controller

3) I got the following error while uploading my modules(I apologise cause it is long)

      An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: Multiple controls with the same ID 'ctr368_DD' were found. FindControl requires that controls have unique IDs. ---> System.Web.HttpException: Multiple controls with the same ID 'ctr368_DD' were found. FindControl requires that controls have unique IDs. at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id) at DotNetNuke.UI.Skins.Skin.AddPageMessage(Skin objSkin, String Heading, String Message, ModuleMessageType objModuleMessageType) in C:\Inetpub\wwwroot\DNNSource\admin\Skins\Skin.vb:line 717 at DotNetNuke.UI.Skins.Skin.Page_Init(Object sender, EventArgs e) in C:\Inetpub\wwwroot\DNNSource\admin\Skins\Skin.vb:line 1096 at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Framework.CDefault.Page_Init(Object sender, EventArgs e) in C:\Inetpub\wwwroot\DNNSource\Default.aspx.vb:line 524 at System.Web.UI.Control.OnInit(EventArgs e) at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) in C:\Inetpub\wwwroot\DNNSource\components\Shared\PageBase.vb:line 209 at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace ---

I dont really know how to trace the problem, it refers to duplicate components having the same key.

Any other way to help point me in the right direction will highly be appreciated. Thanks

 
New Post
5/6/2006 8:50 PM
 

Hello and welcome to DotNetNuke,

in answer to your questions

1) as usual in IT, the answer is "it depends". Codesmith is a good tool to use to generate modules, mygeneration is another popular (and free) option. Theres also cheap commercial tools such as Dalbuilder that are popular. If you're talking about the code generated that supports providers, then you don't necessarily need to use it. It's good to use, as it eases the support for multiple data sources, but if you're developing for a single database platform, then use whatever database code you feel suits (often people will simply use direct calls to the SqlHelper component e ship with) . In the next release of DNN, there will be a generic database layer added, that will help developers reduce the lines of code.

Also, you may want to take a look at the DNN4 starterkit. As well as a starterkit website, it installs a number of templates, that can be used for RAD development. I frequently prototype my code in this way, before using code generation to add the enterprise trimmings.

2) normally you create a controller class for each table, and if you're then joining across, choose what feels more approriate. BTW, I'm assuming you're using the codesmith templates form http://dnnjungle.vmasanas.net/Default.aspx?PageContentMode=1&tabid=28 .

3) that's usually an indication of an error in your module, though sometimes it can be caused by malformed html. Take a look @ http://blogs.speerio.net/peerio/2005/02/25/Speerio+My+Modules+VSNet+Solution+For+DotNetNuke.aspx , it contains a useful file called dnndebug.aspx that's great for working out where the real error is.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Help needed in Uploading modulesHelp needed in Uploading modules


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