不用担心 IDE (例如 VisualStudio)或者 不知道的属性。未在 ASP.net 中注册的属性按原样传递和呈现。因此,上面的代码(基本上)呈现为:
<input type="text" placeholder="hint"/>
Using placeholder in resources
A fine way of applying the hint to the control is using 资源. This way you may have localized hints. Let's say you have an Index.aspx file, your App _ LocalResources/index.aspx.resx file contains