2
这里是我的模型:MVC 3有条件远程验证
public class StockRequestModel
{
public int StockID { get; set; }
public int CategoryID { get; set; }
public int ItemID { get; set; }
public string TranCode { get; set; }
[Remote("CheckAvailableStocks", "Validation", AdditionalFields = "ItemID")]
public int ItemQuantity { get; set; }
public decimal ItemValue { get; set; }
public int PurchaseOrderID { get; set; }
public int MaterialRequesitionID { get; set; }
public int ReturnedByID { get; set; }
public string Remarks { get; set; }
public DateTime LastUpdateDate { get; set; }
}
这个模型,在我的网站上的多个页面。请帮助我如何在特定页面上启用/禁用此遥控器?
感谢
非常感谢你的类! – samantha07
@ samantha07:欢迎您:) – Shyju