public ActionResult cbpnlNewUpdateConfigs(int id)
{
IEnumerable<StorageConfigurationModel> List = (IEnumerable<StorageConfigurationModel>)Session["ConfigurationList"];
foreach (StorageConfigurationModel configModel in List)
{
configModel.
}
return PartialView("cbpnlNewUpdateConfigs", new StorageConfigurationModel { });
}
그래서 나는 패널의 모델의 요소를 보여주고 싶은, 그래서 그 정보를 보내는 부분보기을한다. 하지만이 메서드를 호출하면 모든 목록을보고 원하는 요소를 찾고 해당 정보를 보내야합니다. 내가 볼 때, 나는 나의 모델의 각 속성을 볼 수 없다. 예를 들어 내 모델에는 ID와 위치가 있지만 'configModel'에서는 모델을 볼 수 없습니다.
왜?
설명 : 내가 StorageConfigurationModel
의 목록과 callbackpanel의 reveiving 한 StorageConfigurationModel
하고있는 부분도 수신있는 gridview있는 부분보기가 기본보기에서 :
public class StorageConfigurationModel
{
public int QueueMonitorConfigurationsID { get; set; }
public PathType QueueMonitorConfigTypeName { get; set; }
public string Location { get; set; }
public UnitType QueueMonitorValueTypeName { get; set; }
public ThresholdType Threshold { get; set; }
public int Value { get; set; }
}
public enum UnitType
{
MB, GB, TB, Files, Percentage
}
public enum ThresholdType
{
Upper, Lower
}
public enum PathType
{
Path
}
그리고를 기본보기 :
그래서 처음로드 할 때 '-1'을 보내면 패널이 꺼집니다. 와이. 그러나 gridview (첫 번째 부분보기)에서 편집을 클릭하면 클릭 한 ID로 패널의 partialview가로드되므로 목록의 요소를 찾은 다음 보내야합니다.
당신은 (그것을 또는 관련 속성)은'StorageConfigurationModel' 클래스를 게시 할 수가 작동하지 않았다 아무 생각이 왜? – Tyrsius
그게 내가 할 수없는 일을하고 싶어요 – AAlferez
왜 그것을 게시 할 수 없습니까? – Tyrsius