This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Optimization; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
namespace BootstrapSupport | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Optimization; | |
namespace BootstrapSupport | |
{ | |
public class BootstrapBundleConfig | |
{ | |
public static void RegisterBundles(BundleCollection bundles) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FieldValidation | |
{ | |
public FieldValidation(string fieldName, string message) | |
{ | |
FieldName = fieldName; | |
Message = message; | |
} | |
public string FieldName { get; set; } | |
public string Message { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find the autocomplete input text element | |
var autocompleteInput = new UITestControl(Browser); | |
autocompleteInput.TechnologyName = "Web"; | |
autocompleteInput.SearchProperties.Add(HtmlEdit.PropertyNames.Id, "myAutocomplete"); | |
autocompleteInput.Find(); | |
// Find the UL based on the autocomplete input text element | |
var ul = autocompleteInput.GetAutocompleteUl(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
namespace DemoApp.Areas.Demo | |
{ | |
public class DemoAreaRegistration : AreaRegistration | |
{ | |
public override string AreaName | |
{ | |
get | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
namespace MyApp | |
{ | |
public class CarController : Controller | |
{ | |
//... | |
public ActionResult Edit(CarModel model) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using System.Web.Mvc; | |
namespace My.ModelBinders | |
{ | |
/// <summary> | |
/// Thank you Phil Haack: used to model bind multiple culture decimals | |
/// http://haacked.com/archive/2011/03/19/fixing-binding-to-decimals.aspx | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!-- See how the meta tag is the first inside the head? That's *important* --> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jQuery auto completes add the class below when loading */ | |
.ui-autocomplete-loading { | |
background:url('/images/ajax_loader.gif') no-repeat right 0.5em center; | |
} | |
/* How'd you like them apples IE 10? */ | |
.ui-autocomplete-loading::-ms-clear { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cassette; | |
using Cassette.Scripts; | |
using Cassette.Stylesheets; | |
namespace CassetteDemo | |
{ | |
/// <summary> | |
/// Configures the Cassette asset bundles for the web application. | |
/// </summary> | |
public class CassetteBundleConfiguration : IConfiguration<BundleCollection> |