Questions tagged [fluenthtml]
9 questions
4
votes
2 answers
MvcContrib FluentHtml With Razor?
I'm wondering does the latest release of MvcContrib work with the Razor view engine? I referenced the MvcContrib assembly and the FluentHtml assembly, then I added the required namespace to the ~/View/Web.config as suggested here by Darin. But…

Kassem
- 8,116
- 17
- 75
- 116
2
votes
4 answers
Create select list with first option text with mvccontrib?
Trying to create a select list with a first option text set to an empty string. As a data source I have a List of a GenericKeyValue class with properties "Key" & "Value". My current code is as follows.
<%= this.Select(x =>…

aherrick
- 19,799
- 33
- 112
- 188
1
vote
1 answer
How to set the "float" style using FluentHtml in MVCContrib
I'm working in ASP.NET MVC 1.0 using MvcContrib FluentHtml version 1.0.
The following code doesn't work because float is a C# keyword.
<%= this.TextBox(m => m.Name).Styles(float => "left") %>
How do I define the "float" css style using the Styles…

Michael Meadows
- 27,796
- 4
- 47
- 63
1
vote
2 answers
Using MVC Contrib FluentHtml in Views
If I understand things correctly, to use MVC Contrib's FluentHtml in my Views, I need to change my Views to inherit from MvcContrib.FluentHtml.ModelViewPage instead of System.Web.Mvc.ViewPage.
Will I lose any functionality provided by…

Mattio
- 2,014
- 3
- 24
- 37
0
votes
1 answer
Anyone had success with EditorFor Templates using FluentHtml?
I know it's a long shot, but i wondered if anyone has had any success with using FluentHtml inside an editorFor Template.
Specifically, getting the prefixes to work so that the viewmodel binds back when submitted.
<%: Html.EditorFor(model =>…

4imble
- 13,979
- 15
- 70
- 125
0
votes
1 answer
Disable a checkbox in a MVcContrib.FluentHtml.CheckboxList
I have just started to discover FluentHml and I'm stuck with the CheckBoxList Helper.
Here is the code
-
<%=this.CheckBoxList(m=>m.Filter)
.Options(criteria.Choices, x => x.Code, x => x.DisplayText)
…

Hasan
- 1
- 2
0
votes
1 answer
Problem creating a custom input element using FluentHtml (MVCContrib)
I just recently started dabbling in ASP.NET MVC 1.0 and came across the wonderful MVCContrib. I had originally gone down the path of creating some extended html helpers, but after finding FluentHTML decided to try my hand at creating a custom input…

seth
- 171
- 2
- 8
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
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