내 Html.Editorfor 물 마크를 표시하기 위해 노력하고, 여기에 워터 마크 (프롬프트 =
내보기 내 ViewModel에 여기[Display(Prompt="This is a WaterMark")]
[DisplayFormat(DataFormatString = "{0:MM/dd/yyy}", ApplyFormatInEditMode = true)]
public DateTime Dob { get; set; }
입니다
@Html.EditorFor(model => model.Dob)
여기에서
은 \ Views \ Shared \ EditorTemplates \ String.cshtml에있는 내 EditorTemplate String.cshtml입니다.
다음을 시도해 보았습니다. this thread. 그러나 내 워터 마크가 나타나지 않았지만 그 이유는 무엇입니까?
는이
Internet Explorer를 사용하고 있습니까? – Romias