DirectEvent.Action to another Area

  1. #1

    DirectEvent.Action to another Area

    How does one make sure a directevent is fired to another Area?

    I have a root View with a Form which I would like to post to an action in a specific Area.
    When using:

    directevents.Click.Action = Url.Action("Action", "Controller", new { area = "Area" });
    The root controller is still appended to it resulting into a post to:

    "/Root/Area/Controller/Action"
    instead of
    "/Area/Controller/Action"

    What am I missing here?
    Thanks in advance!
  2. #2
    You need to use Url instead Action because Url.Action generates url
  3. #3
    Thanks Vlad.

    I must have looked wrong at the post when I tried that earlier, as it works like a charm.
    Please close the thread and keep up all the good work in the new year!

    Regards,

    Tom

Similar Threads

  1. Delete action
    By oseqat in forum 1.x Help
    Replies: 19
    Last Post: Jul 25, 2011, 1:31 PM
  2. How to Upload to another action?
    By izee in forum 1.x Help
    Replies: 0
    Last Post: Nov 30, 2009, 3:45 AM
  3. [FIXED] [V0.7] Form action="" Bug
    By davidhoyt in forum Bugs
    Replies: 3
    Last Post: Dec 23, 2008, 1:11 AM
  4. [CLOSED] Form action="" Bug
    By davidhoyt in forum 1.x Legacy Premium Help
    Replies: 0
    Last Post: Dec 22, 2008, 1:02 PM
  5. [FIXED] [V0.7] Form action="" Bug
    By davidhoyt in forum Bugs
    Replies: 10
    Last Post: Dec 18, 2008, 6:16 AM

Tags for this Thread

Posting Permissions