0
Gateway.cs頁屬性列表中的數據沒有顯示
public class gatewayConnectionPropertyData
{
public string url { get; set; }
public int type { get; set; }
public string service_desc { get; set; }
}
protected void btnAddEdit_Click(object sender, EventArgs e)
{
gatewayConnectionPropertyData proposal = new gatewayConnectionPropertyData();
proposal.url = "/testproposal.xml";
proposal.type = 13;
proposal.service_desc = "proposal";
gatewayConnectionPropertyData utility = new gatewayConnectionPropertyData();
proposal.url = "/testUtulity.xml";
proposal.type = 12;
proposal.service_desc = "utility";
gatewayConnectionPropertyData intelligence = new gatewayConnectionPropertyData();
proposal.url = "/testinteligence.xml";
proposal.type = 53;
proposal.service_desc = "intelligence";
List<gatewayConnectionPropertyData> mydataList = new List<gatewayConnectionPropertyData>();
gatewayConnectionPropertyDataList.Add(proposal);
gatewayConnectionPropertyDataList.Add(utility);
gatewayConnectionPropertyDataList.Add(intelligence);
}
mydataList總是算不過3只出現升AST添加的項目我可以看不到所有提交的數據在那裏我錯過了什麼我做需要改變。如果有任何意見,我可以在我的身邊申請更好的解決方案,以創建屬性列表模型。
謝謝。
您正在'gatewayConnectionPropertyDataList'中添加項目是什麼?而不是'mydataList' –