Select Properties
Select Security Tab
Select contributers
Deny CheckOut and Check In
using System; using System.Globalization; using System.Web.Mvc; public class DecimalModelBinder : IModelBinder { public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) { ValueProviderResult valueResult = bindingContext.ValueProvider .GetValue(bindingContext.ModelName); ModelState modelState = new ModelState { Value = valueResult }; object actualValue = null; try { actualValue = Convert.ToDecimal(valueResult.AttemptedValue, CultureInfo.CurrentCulture); } catch (FormatException e) { modelState.Errors.Add(e); } bindingContext.ModelState.Add(bindingContext.ModelName, modelState); return actualValue; } }Then stick this into your Global.asax.cs
Application_Start
:protected void Application_Start() { ModelBinders.Binders.Add(typeof(decimal), new DecimalModelBinder()); // Your other stuff goes here. }Once I did that and re-ran the code above, everything works as expected. See for yourself:
$(':radio').change(function () {
$(':radio:checked').each(function () {
if ($(this).val()== 2) {
//Do stuff
return;
}
});
});
$("#div1 :input[type='text']:first").focus();
.transparent
{
filter:alpha(opacity=45);
-moz-opacity: 0.45;
opacity: 0.45;
}