How to get a piece of the Asp.net URL mvc5

Asked

Viewed 57 times

0

I have the following URL:

http://localhost:59278/video/categoria/desenho

I’m trying to use the Url.Action to mount a URL that is based on the value of the current URL. I need to take the amount desenho of the URL.

How can I do that:

Url.Action("Index","video",new { categoria = **????** }
  • 1

    See if that answer is the same thing. If it doesn’t work, post as your route so we can help you better.

  • That’s right, you solved

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.