如何在文本框中设置默认值

时间:2017-01-18 12:45:23

标签: asp.net-mvc

{
 "kind": "doubleclickbidmanager#query",
 "metadata": {
  "dataRange": "MONTH_TO_DATE",
  "format": "CSV",
  "title": "test"
 },
 "params": {
  "filters": [
   {
    "type": "FILTER_PARTNER",
    "value": "xxxx"
   }
  ],
  "metrics": [
   "METRIC_IMPRESSIONS"
  ],
  "type": "TYPE_GENERAL"
 },
 "schedule": {
  "frequency": "ONE_TIME"
 },
 "queryId": "1232456"
}

当默认值设置此方法但值未设置值为什么

1 个答案:

答案 0 :(得分:2)

Value V应该是资本

@html.TextBoxFor(Model=>Model.Age,new{@Value="0"})