V
V
VanilaSpirit2020-06-21 00:36:55
C++ / C#
VanilaSpirit, 2020-06-21 00:36:55

ASP.NET Core multiple pages or multiple ifs?

Hello!
I would like to ask what would be the right thing to do - there are 4 tables with different data and a link to each of them.
Is it reasonable to create a new cshtml to display each table, or do everything on one, but, say, indicate in the ViewBag which table we will display, and write 4 if blocks on Index.cshtml, where we will display the desired mark in the ViewBag table?

What will be more correct?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2020-06-21
@d-stream

Apparently it is worth thinking about the topic "what will happen if you suddenly need to withdraw another one, two, twenty, two hundred?"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question