Hi,
Does anyone know how I could go about doing something like :
Html.ActionLink(c => c.SomeAction(new MessageObject { Id = 1 } ))
This should output a link with the url of "/Controller/SomeAction/1", pointing at an ActionMethod along the lines of:
public Controller : Controller
{
public ActionResult SomeMethod(MessageObject messag...
I am trying to pass Eval to Html.RenderPartial inside ASP.NET Repeater but it does not work can any one help?
<asp:Repeater runat="server">
<ItemTemplate>
<% Html.RenderPartial("UserControl1",Eval("Title")); %>
</ItemTemplate>
</asp:Repeater>
by the way I know that I can do it in other ways but ...
Hey guys
I'm playing around with Razor + MVC 3 and have a really simple scenario... Basically I'm trying to create a very basic HTML helper but I'm getting the following exception:
'System.Web.Mvc.HtmlHelper'
does not contain a definition for
'ScriptCss' and no extension method
'ScriptCss' accepting a first argument
of type...