Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christina 127 posts 390 karma points notactivated
    Nov 03, 2019 @ 20:50
    Christina
    0

    Actionlink with parameters generate /umbraco/Surface/myController?id=3

    Hi I using actionlink for pass parameter to a surfacecontroller.

    @Html.ActionLink(l.SlopeName, "Index","Slopestatus",new {level = l.SlopeValue }, new { @class = Request["level"] == l.SlopeValue ? "active" : "" })
    

    Links that are generated /umbraco/Surface/Slopestatus?level=easy I want /PageId?level=easy

      public ActionResult Index(Slopestatus model,string level=null )
    

    Hope someone can help /Christina

  • AddWeb Solution Pvt. Ltd 109 posts 360 karma points
    Nov 05, 2019 @ 07:22
    AddWeb Solution Pvt. Ltd
    0

    Hello Christina,

    if I have understood correctly, you want the name to be "PageId" instead of "Slopestatus" in the call. to achieve this you can replace "slopestatus" with "PageId"

  • Christina 127 posts 390 karma points notactivated
    Nov 05, 2019 @ 08:47
    Christina
    100

    Thanks I solved it without ActionLink. My problem was that the link was generated as / umbraco / Surface / Slope status and I wanted the page id = / 1500.

Please Sign in or register to post replies

Write your reply to:

Draft