Go to file
Doug Bunting dd5da33a62 Sanitize "id" attributes for HTML 4.0.1
- #704 part 2 of 2
- change `@Html.Id()` to sanitize return value; was identical to `@Html.Name()`

Copied `TagBuilder.CreateSanitizedId()` and `TagBuilder.Html401IdUtil` from MVC 5.2
- except this `CreateSanitizedId()` returns a valid identifier if first `char` is not a letter
 - e.g. "[0].Name"

nits:
- expand variable names, use lots of `var`, put `public` members first
- add doc comments for `CreateSanitizedId()`

Note users will be able to apply different sanitization once we fix #1188.
2014-10-17 16:12:45 -07:00
samples Remove unnecessary references from project.json 2014-10-17 14:26:58 -07:00
src Sanitize "id" attributes for HTML 4.0.1 2014-10-17 16:12:45 -07:00
test Sanitize "id" attributes for HTML 4.0.1 2014-10-17 16:12:45 -07:00
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln Add WebApiCompatShim project structure 2014-10-10 13:41:35 -07:00
Mvc.sln ViewComponent.Invoke() should be able to invoke views 2014-10-17 12:23:18 -07:00
NuGet.Config
README.md
Settings.StyleCop
build.cmd
build.sh Updating build.sh to latest 2014-10-01 11:10:15 -07:00
global.json * Updating path to functional test file and functional test references to 2014-10-06 10:30:26 -07:00
makefile.shade

README.md

ASP.NET MVC

ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup for enjoyable, agile development. ASP.NET MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET MVC in ASP.NET vNext includes support for building web pages and HTTP services in a single aligned framework that can be hosted in IIS or self-hosted in your own process.

This project is part of ASP.NET vNext. You can find samples, documentation and getting started instructions for ASP.NET vNext at the Home repo.