Html.Partial string combine for view file name

203 Views Asked by At

Why is this not working:

@Html.Partial("Training" + Model.Week + Model.Page, Model);

My partial view file names: Training11.cshtml, Training12.cshtml, etc And is there a solution for this? Otherwise I need to create 8 * 8 if(/switch) statements..

0

There are 0 best solutions below