I want different designs/layouts and save them in database and Replace {renderaction1} with @{Html.RenderAction("Index","render1");} and {renderaction2} @{Html.RenderAction("Index","render1");} (can be more/less or types)

The reason, I want to have different design for every customer with a dynamic content. For example customer1 want to have 2 select lists and 1 comment field customer2 want to have 1 select list and 1 chart. Any tip how to make it smart and good?

From database

<table>
  <tr><td>Text1</td></tr>
  <tr>
    <td>{renderaction1}</td>
    <td>{renderaction2}</td>
  </tr>
</table>

After replace

<table>
  <tr><td>Text1</td></tr>
  <tr>
    <td>@{Html.RenderAction("Index","render1");} </td>
    <td>@{Html.RenderAction("Index","render2");}</td>
  </tr>
</table>

Related posts

Recent Viewed