Copied to clipboard

Flag this post as spam?

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


  • Tim 66 posts 89 karma points
    Mar 02, 2023 @ 22:53
    Tim
    0

    Calling different actions in a Surface Controller when using Html.BeginUmbracoForm

    Hi

    I'm working on a shopping basket View Component. I've wrapped the basket with the Html.BeingUmbracoForm

     @using (Html.BeginUmbracoForm<BasketController>
    

    and I want the 3 buttons in the image below (which are wrapped in a for-loop) to call different actions in the Basket surface controller. I'm using the SurfaceAction link to do this, but is this the best way?

    <a href="@Url.SurfaceAction("Add", "Basket", new { sku = cart.Product.Id })"> + </a>
    

    enter image description here

    as after the link is clicked I get a long ufprt value in the url. I understand the purpose of this, I just don't want the user to see it. I'd appreaciate an opinion or a suggestion as to how to do this better :) Thanks Tim

    ?ufprt=CfDJ8GW3zmS5s-NEkP9el77-cLMNZ1KlcLukVcNGn6qGIY14aKOrJFqDxwi9CBkiau7djgkpJOmHC2maYs6Cw0cj7Y9Mu2Nplfyq5pWGyX-Q-MheiX7et3sHiqKGkoct5M5gsWtWi0gvsKKzSxIX3NvrKX9rCN_0UOR2NGGFPCo5MtoM0KwLCvR3BEG2amzRk1h5OQ
    
  • Tim 66 posts 89 karma points
    Mar 03, 2023 @ 10:49
    Tim
    0

    anyone?

Please Sign in or register to post replies

Write your reply to:

Draft