MVC Page Transformations

Adam Ivancic asked on July 1, 2022 15:42

I have created a couple of transformations for different page types and in my view I need to display the proper transformation based on the page type. How do I accomplish this in .NET MVC?

Recent Answers


Dmitry Bastron answered on July 4, 2022 10:00

Hi Adam,

Within the MVC development model, there shouldn't be a need to use transformations at all. What did you put in transformations and how exactly did you plan to use those?

0 votesVote for this answer Mark as a Correct answer

Adam Ivancic answered on July 4, 2022 11:53

It was just HTML under the Transformations tab in the Page Types section that would render for that page type. I was told by support to use partial views instead.

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on July 4, 2022 11:56

Yes, partial views would be a much better approach cause they will be stored in your source control.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.