DataBinding: 'System.Data.DataRowView' does not contain a property with the name

后端 未结 4 1559
我在风中等你
我在风中等你 2020-12-11 01:40

I am getting this weird error... the primary key in my database is \'DocumentID\' so I know that is not the issue. I am trying to get the select,edit & delete gridview b

4条回答
  •  佛祖请我去吃肉
    2020-12-11 02:29

    DataSet Année = new DataSet();
    Année.ReadXml(Server.MapPath("~/Annees.xml"));
    
    DropDownList1.DataTextField = "Number";
    DropDownList1.DataValueField = "Number";
    DropDownList1.DataSource = "Année";
    
    DropDownList1.DataBind();
    

提交回复
热议问题