V
V
VanilaSpirit2020-06-06 20:13:47
ASP.NET
VanilaSpirit, 2020-06-06 20:13:47

ASP.NET MVC is it possible to change the name of a section while being in it and is it correct?

There are 2 pages with different products (conditionally: t-shirts, polo)
The difference in the pages is the type of product displayed on them. The question arose - is it possible to do all this on one page, just changing from localhost/category/shirts to conditional localhost/category/polo , and using the polo/shirts parameter - display the corresponding entries?
Will it be right? And if so, how can you change shirts to polo in the site name?

It's just that if there are not 2, but 9 pages, then this is any change to redo on each of the pages ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bitddeveloper, 2020-06-06
@bitddeveloper

Most likely you need a SPA application
Or just set up your application's routes and display different categories of products.

R
Roman, 2020-06-07
@yarosroman

Everything is possible. Read about controllers, actions (actions) and how to pass parameters there. No one will explain to you the basics of asp.net mvc, given the heap of literature and documentation where everything is described.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question