Changeset 6268 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin
- Timestamp:
- 05/24/11 17:35:29 (13 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBQueryPlugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/ViewModels/FilterModel.cs
r6247 r6268 6 6 using HLWebOKBQueryPlugin.Helpers; 7 7 using HLWebOKBQueryPlugin.ViewModels; 8 using System.ComponentModel.DataAnnotations; 8 9 9 10 namespace HLWebOKBQueryPlugin.Models … … 25 26 public static string ComparisonDropDownList { get { return "comparisonDropDownList"; } } 26 27 28 [Required(ErrorMessage = "Field is required!")] 29 [StringLength(50, ErrorMessage = "Maximum 50 characters allowed!")] 30 public string IntValue { get; set; } 31 27 32 /// <summary> 28 33 /// Constructor … … 200 205 { 201 206 ((StringComparisonFilter)f).Value = kvp.Value; 207 IntValue = kvp.Value; 202 208 } 203 209 else if (kvp.Key.Equals(FilterModel.ComparisonDropDownList)) -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Filter/Filters.ascx
r6247 r6268 3 3 <%@ Import Namespace="HLWebOKBQueryPlugin.OKBQueryService" %> 4 4 <%@ Import Namespace="HLWebOKBQueryPlugin.ViewModels" %> 5 6 7 <script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script> 8 <script src="/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script> 9 10 <% Html.EnableClientValidation(); %> 5 11 6 12 <!-- Put all into a form that calls the "AddFilter" Action--> … … 46 52 <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.StringComparisons, "Value", "Text",(int)filter.Comparison))%> 47 53 <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, (filter.Value))%> 54 <%: Html.TextBoxFor(model => ((FilterModel)Model).IntValue, (filter.Value)) %> 55 <%: Html.ValidationMessageFor(model => ((FilterModel)Model).IntValue) %> 48 56 <% } 49 57 else if ("NameStringComparisonFilter".Equals(f.GetType().Name))
Note: See TracChangeset
for help on using the changeset viewer.