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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


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.

 


FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com
Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com

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