Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
How to generate a dynamic URL/View on C#/JavaScript without creating many specific views?

I'm making some kind of music explorer, let's say this is my url:

https://localhost:44322/Music/ListOfArtists.aspx

And of course there are many artists and I'd want to be able to generate a view that works for every artist, instead of creating a view for each artist. I can create a general view and just modify the data displayed in the page, so the url would look like this:

https://localhost:44322/Music/ListOfArtists/Artist.aspx

But I want the URL to also show the name of the artist instead of Artist.aspx like:

https://localhost:44322/Music/ListOfArtists/Eagles.aspx
https://localhost:44322/Music/ListOfArtists/ABBA.aspx

It'd also mean that whenever I type the name of the artist on the URL I'd get redirected to such artist, I remember I ever did something like this many years ago using PHP and JavaScript but can't remember exactly neither know how to achieve this using C#, but I used something like this somewhere:

url/{menu_id}/{artist_id}

Do you know how can I do this?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda