Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.54 KB | None | 0 0
  1. @model string
  2.  
  3. @{
  4.     string propertyName = ViewData.ModelMetadata.PropertyName;
  5.     string displayName = ViewData.ModelMetadata.DisplayName;
  6.  
  7.     string value = Model;
  8. }
  9.  
  10. <div
  11. >
  12.     <label class="pull-left control-label">@displayName:</label>
  13.     <input type="text"
  14.           class="form-control"
  15.           id="@propertyName"
  16.           name="@propertyName"
  17.           autocomplete="off"
  18.           value="@value"
  19.           placeholder="@displayName"
  20.           readonly="@ViewData.ModelMetadata.IsReadOnly" />
  21. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement