Dynamic content in static content

Dynamic content in static content

I have got simple module in my asp mvc page where can I generate some static html content from database.

For example

<% RenderAction("Article", "Article", new { articleId = 1 });%>  

returns (PartialViewResult)

<ul>     <li><a href="someurl">Hello worlds</a></li> </ul> 

I would like to have possibility to use Url or even Html object in my static article for example (it could be also my custom object with limited functionality with generating links or rendering partial views)

<ul>     <li><a href="<%=Url.Action("Index", "Home")%>">Hello worlds</a></li> </ul> 

or even better

<div>   <p>my static content from database</p>      <% Html.RenderAction("SomeAction"); %> (It could be PartialViewResult)  </div> 

What do you think about it?

How to redirect the Error page in asp.net mvc


Asp.net MVC custom routing

Issue with HTML5 audio control in Visual Studio 2010 and ASP.NET MVC

74 out of 100 based on 44 user ratings 494 reviews