Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model string
- @{
- string propertyName = ViewData.ModelMetadata.PropertyName;
- string displayName = ViewData.ModelMetadata.DisplayName;
- string value = Model;
- }
- <div
- >
- <label class="pull-left control-label">@displayName:</label>
- <input type="text"
- class="form-control"
- id="@propertyName"
- name="@propertyName"
- autocomplete="off"
- value="@value"
- placeholder="@displayName"
- readonly="@ViewData.ModelMetadata.IsReadOnly" />
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement