htmlextensions

Using a strongly typed ActionLink when the action method doesn't take a primitive type

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...

Passing Container.Eval to (Html.ReaderPartial) inside ASP.NET Repeater Control

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 ...

ASP.Net MVC 3 - Html Extensions...

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...