Questions tagged [mvccontrib]

This project was designed to add functionality and ease-of-use to Microsoft's ASP.NET MVC Framework, MVC Contrib is useful for developers looking to develop and test UI elements on top of the ASP.NET MVC framework.

MvcContrib adds functionality and ease-of-use to Microsoft's ASP.NET MVC Framework. It is primarily intended for use by developers of UI elements that target ASP.NET MVC.

Installation

MvcContrib can most easily be installed through its NuGet package.

Install-Package MvcContrib
311 questions
0
votes
1 answer

Trouble with MVCContrib InputForm and SparkViewEngine

I am trying to use MVCContrib InputBuilders but I am having trouble. I am also using S#arp architecture and spark. My spark view looks like this: new.spark: ${Html.InputForm()} My…
Chris Nicola
  • 14,384
  • 6
  • 47
  • 61
0
votes
2 answers

where can i download mvccontrib for asp.net mvc v1

i see that the codeplex site has moved to asp.net mvc version 2 already. http://mvccontrib.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=37422 will this work with version 1 also? if not, where can you download a build against version 1?
leora
  • 188,729
  • 360
  • 878
  • 1,366
0
votes
1 answer

ASP.NET MVC Html.Element?

Is there a generic Html.Element? I would like to be able to do this: Html.Element("IFrame", "elementName", new { src = c => c.ChangePassword })
detroitpro
  • 3,853
  • 4
  • 35
  • 64
0
votes
1 answer

MVC4 - TryValidateModel breaks unit tests

I have the following controller method public ActionResult Create(Category category) { //default values if (string.IsNullOrEmpty(category.GeoAreaLevelIdentifier)) { category.GeoAreaLevelIdentifier =…
Maxim Eliseev
  • 3,248
  • 4
  • 29
  • 35
0
votes
1 answer

Custom column in MvcContrib Grid

I am using mvc and mvccontrib grid for the first time. I have my mvcContrib grid like so: <%Html.Grid(Model.Results) .RowAttributes(row => new Hash(@class => row.Item.CadPriority1 ? "redgrid" : row.IsAlternate ? "alternategrid" :…
user1550951
  • 369
  • 2
  • 9
  • 26
0
votes
1 answer

MVC Contrib Input Builders and Spark View Engine

In Eric Hexter's Input Builders, different templates use different strongly-typed models; for example String uses PropertyViewModel, DateTime uses PropertyViewModel, Form uses PropertyViewModel[], and so forth. Spark View Engine…
Daniel Liuzzi
  • 16,807
  • 8
  • 52
  • 57
0
votes
1 answer

Cannot use fluent html lambda expressions in Spark view

I'm attempting to use fluent html and the spark view engine in my asp.net mvc application. I've assinged the proper base class, added the assemblies, and when i do this.TextBox("MyProperty") it works fine. However I get the below exception when i…
midas06
  • 1,991
  • 2
  • 22
  • 43
0
votes
2 answers

Input builder for a DropDownList with data from DB in mvc contrib

I have something like this public class Person { public Country {get; set;} } public class PersonInput { public ImNotSureWhatShouldIUseHere Country {get; set;} } there is a input builder for Enums in mvc contrib but it's not good for me…
Omu
  • 69,856
  • 92
  • 277
  • 407
0
votes
1 answer

Replace string concat with Razor syntax

Here is my ASP.NET MVC 4 View (Razor) code: @Html.Grid(Model).Columns(column => { column.For(s => s.Description + @"
Andrei
  • 42,814
  • 35
  • 154
  • 218
0
votes
2 answers

How to set Foreign Key object using Entity Framework and FluentHtml

What I'm looking to do is set a Foreign Key object in an EF entity via FluentHtml. I have an entity of Foo with a reference to the object Bar via Foo.Bar. What I am trying to do is set the value of Bar in my view form. My models contains a…
Jim Mitchener
  • 8,835
  • 7
  • 40
  • 56
0
votes
0 answers

Share _Layout via reusable dll

Can I share _Layout.cshtml (MasterPage) in separate dll. I am using MvcContrib library for sharing Controllers/Views but do not know how to share _Layout. MvcContrib approach is prefferable
Polaris
  • 3,643
  • 10
  • 50
  • 61
0
votes
1 answer

MvcContrib Grid not listing data, despite it's existence

The following code, located in my view, outputs the following: ViewBag.Count = 4 39d3fe7f-fb1c-4c0f-948e-43093f1d7f85 265ca3c1-9890-4680-b10c-8c7c5e22b26f f07f0aee-3948-473a-873f-74d446030d36 …
user1477388
  • 20,790
  • 32
  • 144
  • 264
0
votes
1 answer

MvcContrib GridModel : Is it possible to do ActionSyntax in a GridModel

I have a code in my aspx file which uses ActionSyntax, and i want to use a GridModel instead, but i don't know how to do that. Here is a sample of my aspx file : <% Html.Grid(ViewData.Model).Columns(column => { column.For(x => x.Id).Named("N° de…
LoSTxMiND
  • 332
  • 3
  • 8
0
votes
1 answer

Html.RenderPartial is not rendering view correctly

I create a MvcContrib.UI.Grid in my ASP.NET C# MVC 3 applicatio. I create pageer for this grid.Please see my pager code @using MvcContrib.UI.Pager @using MvcContrib.Pagination @model…
Ragesh P Raju
  • 3,879
  • 14
  • 101
  • 136
0
votes
1 answer

Portable Areas in MVC 4

Has anyone gotten Portable Areas working in MVC 4? I have gotten PAs working in MVC 3 by following this tutorial. However, when changing the consuming application to MVC 4, Portable Areas no longer work. It also seems that it doesn't matter if…
FunkMonkey33
  • 1,956
  • 2
  • 16
  • 24
1 2 3
20
21