MVC给控件赋值(string+Model.Id)

@{


 string controlId = string.Format("product_attribute_{0}", Model.Id);

  <select name="@(controlId)" id="@(controlId)" style="width: 177px">


}

你可能感兴趣的:(MVC给控件赋值(string+Model.Id))