- Install AspNetMVC3Setup.exe
- Make sure web site and application pool are both set the ASP.NET version to 4.0.30319
- Add "Wildcard application maps"
Steps to add "Wildcard application maps":
In property for the website, click the Home Directory tab.
Click the "Configuration..." button. In the "Mappings" tab, click "Insert..."
Next to the "Wildcard application maps" label In the textbox, type in "c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll"
Uncheck the box labeled "Verify that file exists" Click OK
References:
This one is for earlier version of MVC, but idea is the same for Wildcard application maps
http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx
Wednesday, May 9, 2012
Tuesday, May 8, 2012
Monday, May 7, 2012
ASP.NET MVC: Adding aria-required attribute for required fields
http://blogs.msdn.com/b/stuartleeks/archive/2012/05/01/asp-net-mvc-adding-aria-required-attribute-for-required-fields.aspx
@{
var attributes = new RouteValueDictionary
{
{ "class", "text-box single-line"}
};
if (ViewContext.ViewData.ModelMetadata.IsRequired)
{
attributes.Add("aria-required", "true");
}
}
@Html.TextBox("", ViewContext.ViewData.TemplateInfo.FormattedModelValue, attributes)
@{
var attributes = new RouteValueDictionary
{
{ "class", "text-box single-line"}
};
if (ViewContext.ViewData.ModelMetadata.IsRequired)
{
attributes.Add("aria-required", "true");
}
}
@Html.TextBox("", ViewContext.ViewData.TemplateInfo.FormattedModelValue, attributes)
What is aria-required?
It is a HTML property to indicate if user input field is required. This property is for Accessible Rich Internet Applications
<input name="ariaexample" id="example" aria-required="true" aria-label="Test"/>
Reference:
http://www.w3.org/WAI/GL/WCAG20-TECHS/ARIA2.html
<input name="ariaexample" id="example" aria-required="true" aria-label="Test"/>
Reference:
http://www.w3.org/WAI/GL/WCAG20-TECHS/ARIA2.html
Subscribe to:
Posts (Atom)