2015-12-21 43 views

回答

0

我所做的是:

<div class="dropdown"> 
    <button class="btn btn-default dropdown-toggle" type="button" id='@String.Format("DropdownCriticalMin{0}", Model.ParametersLimits[listIndex].ID)' data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 
     My Dropdown 
      <span class="caret"></span> 
    </button> 
    <ul class="dropdown-menu" aria-labelledby="'@String.Format("DropdownCriticalMin{0}", Model.ParametersLimits[listIndex].ID)'"> 
     <li> 
      @Html.TextBoxFor(m => m.ParametersLimits[listIndex].CriticalMin, new 
        { 
         @class = "form-control ", 
         id = String.Format("criticalMin{0}", Model.ParametersLimits[listIndex].ID), 
         onblur = "checkLimitLogic(this)", 
         data_val = "true", 
         data_val_range = String.Format(Errors.CriticalMinLogicError, Model.ParametersLimits[listIndex].Name) 
         }) 
     </li> 
     <li><a onclick="setNull('@String.Format(" criticalMin{0}", Model.ParametersLimits[listIndex].ID)')">Ustaw puste</a></li> 
    </ul> 
</div> 

,如果您有任何建議,我會很高興看到他們:)

相關問題