使用Razor視圖引擎的MVC 3應該如何通過W3C xhtml驗證?MVC 3適用於Ajax.BeginForm的有效XHTML失敗?
頁的頂部:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> .......
我FORM ....
@using(Ajax.BeginForm("CreateAccount","Home",null, new AjaxOptions { HttpMethod="POST", OnBegin="CreateOnBegin", OnSuccess="CreateOnSuccess"})){ .......
W3C驗證錯誤: 沒有屬性 「數據AJAX」
on="/en/Home/CreateAccount" data-ajax="true" data-ajax-begin="CreateOnBegin" d…
*沒有屬性「數據Ajax的開始」 * *沒有屬性「數據Ajax的方法」 * 沒有屬性「數據Ajax的成功」 沒有屬性「數據val」
<input data-val="true" data-val-required="The First Name? field…
還試圖通過W3C作出指示過渡,而不是嚴格的...同樣的錯誤......? – Bryant 2011-03-20 01:40:37