I have this BRAIL code:
                ${FormHelper.LabelFor("Year", "Year:")}
                ${FormHelper.Select("Year", Years)}
                ${FormHelper.Select("YearTypeID", YearTypes, {"value":"ID",
"text":"Desc"})}<br />
                ${FormHelper.LabelFor("ID","Classification:")}
                ${FormHelper.Select("ID", Classifications, {"value":"ID",
"text":"Abbreviation"})}<br />
                ${FormHelper.LabelFor("Type","Type:")}
                ${FormHelper.Select("Type", Types, {"value":"ID", 
"text":"Desc"})}
<br />
                ${FormHelper.LabelFor("Region","Region:")}
                ${FormHelper.Select("Regions", null, Regions, {"value":"ID",
"text":"Description", "firstoption":"All", "firstoptionvalue":"All"})}
<br />
                ${FormHelper.LabelFor("District"," or District:")}
                ${FormHelper.TextField("District")}<br />
                ${FormHelper.LabelFor("Admin"," or Admin Type:")}
                ${FormHelper.Select("Admin", null, Admin, {"value":"Type",
"text":"Desc", "firstoption":"Select", "firstoptionvalue":"Select"})}
<br />
                <input type="submit"  id="btnSave" name="submitaction"
value="Generate" class="button" />


Then this C# code in the controller:
        public void Classification(int Year, int YearTypeID, [ARFetch
("ID")] BadgeClass Classification, int Type, [ARFetch("Region")]
Region thisRegion, [ARFetch("District")] District District, string
Admin)

At one point I had the 'Regions' Select working that the property
thisRegion (it had been called Region but that seemed stupid to have
the property name the same as the object name) would correctly have
the selected region.

Now I get null all the time.

I'm sure it's a typo, but with so few examples out there, and not
understanding the syntax, I can't see it.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to