Okay, that worked last night, before I left. I started up this AM, and
I get this:
Server Error in '/IntranetApps' Application.
--------------------------------------------------------------------------------
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a
correct format.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options,
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
+2755599
System.Number.ParseInt32(String s, NumberStyles style,
NumberFormatInfo info) +112
System.String.System.IConvertible.ToInt32(IFormatProvider provider)
+43
System.Convert.ChangeType(Object value, Type conversionType,
IFormatProvider provider) +217
System.Convert.ChangeType(Object value, Type conversionType) +38
Castle.Components.Binder.DefaultConverter.ConvertPrimitive(Type
desiredType, Object input, Boolean& conversionSucceeded) +154
Castle.Components.Binder.DefaultConverter.Convert(Type desiredType,
Object input, Boolean& conversionSucceeded) +453
Here's my 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("Region", null, Region, {"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" />
C# .Net
public void Classification(int Year, int YearTypeID, [ARFetch
("ID")] BadgeClass Classification, int Type, [ARFetch("Region")]
Region thisRegion, [ARFetch("District")] District District, string
Admin)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---