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  |  

telerik -- supercharge your DNN websites
  Ads  
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  The name 'EditURL' does not exist in the current context
Previous Previous
 
Next Next
New Post 8/26/2008 2:05 AM
Unresolved
User is offline Lee
74 posts
10th Ranked


The name 'EditURL' does not exist in the current context  

Hi all,

I am writing a module in C# and when I try and run it I get this error: "The name 'EditURL' does not exist in the current context".

All the code is there, as far as I can see. The iActionable in the class declaration, etc...

This is in the CodeBehind for the iActionable Members:

[CODE]

#region IActionable Members

    public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions
    {
        get
        {
            //create a new action to add an item, this will be added to the controls
            //dropdown menu
            ModuleActionCollection actions = new ModuleActionCollection();
            actions.Add(GetNextActionID(), Localization.GetString(ModuleActionType.AddContent, this.LocalResourceFile),
                ModuleActionType.AddContent, "", "", EditUrl(), false, DotNetNuke.Security.SecurityAccessLevel.Edit,
                true, false);

            return actions;
        }
    }

#endregion

[/CODE]

Does anyone have a solution for this error, or be able to point me in the right direction?

Thanks in advance,


Lee B
Owner
S@W Designs
Outsourcing partner
Developer forums and Help.
 
New Post 8/26/2008 7:02 AM
User is offline William Severance
847 posts
www.wesnetdesigns.com
7th Ranked






Re: The name 'EditURL' does not exist in the current context  

Check that your module control inherits from DotNetNuke.Entities.Modules.PortalModuleBase which contains the definitions for several overloads of the EditUrl method.


Bill, WESNet Designs
 
New Post 8/26/2008 7:36 AM
User is offline Lee
74 posts
10th Ranked


Re: The name 'EditURL' does not exist in the current context  

Hi and thanks William,

yes my module does inherit the PortalModuleBase, code below:

using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;

namespace SawDesigns.Modules.HotBox
{
    public partial class ViewHotBox : PortalModuleBase, IActionable
    {
 

This is what has confused me with the error.

In the end I copied code from a working module to the problem module and it made no difference. So I rewrote it.

Thanks for the help.


Lee B
Owner
S@W Designs
Outsourcing partner
Developer forums and Help.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  The name 'EditURL' does not exist in the current context
 


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.

 


TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com
PartnerPoint | Community of Microsoft Partners
PartnerPoint is one of the largest and most active online communities of Microsoft Partners worlwide with over 8,000 members.
www.PartnerPoint.com
Web Valley
Website design, Database development
www.webvalley.com

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