Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Different Moduleid in Edit and View
Previous Previous
 
Next Next
New Post 8/25/2008 1:25 PM
User is offline Kevin J Baird
10 posts
VGNRadio.com
10th Ranked


Different Moduleid in Edit and View 

I have a module that I wrote, it has two forms, a View and an Edit.  When I get the ModuleID from the View, it differs from the one in the Edit.  Is this normal?  I thought they were supposed to be the same.  Or is there a way I can make them the same?  I'm just asking for moduleid() in the codebehind and it gives me a different one for each form.

Any help would be appreciated. 

 
New Post 8/25/2008 5:30 PM
User is offline William Severance
825 posts
www.wesnetdesigns.com
7th Ranked






Re: Different Moduleid in Edit and View 
Modified By William Severance  on 8/25/2008 7:30:51 PM)

Most DNN modules contain only one module definition. So, in the "normal" case, all of the module controls (View, Edit, Settings, etc.) will return the same ModuleID. It is, however, also possible to create a module with multiple definitions with each definition having one or more module controls. The DNN Blog module is probably the best example of a module having multiple definitions. In such a case, only controls belonging to the same module definition will have the same ModuleID.

I suspect that when you created the module definition for your custom module - most likely manually using Host-->Module Definitions -->Create Module Definitions -- you added the view control to the first definition then added a second definition to which you added the edit control. You can check to see if this is the case by looking to see if the Definitions drop down for the module contains one or two entries.  If so, you will need to move the edit control back into the first definition then delete the second.

It is also possible but less likely that you created multiple definitions in the .dnn manifest file. Again the blog module is a good example of how the manifest file is structured should you want to intentionally do this.


Bill, WESNet Designs
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Different Moduleid in Edit and View
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP