“Both DataSource and DataSourceID are defined” error using ASP.NET GridView

后端 未结 8 1792
死守一世寂寞
死守一世寂寞 2021-02-15 06:11

\"Both DataSource and DataSourceID are defined on \'grdCommunication\'. Remove one definition.\"

I just got this error today, the code has been working until this after

8条回答
  •  臣服心动
    2021-02-15 06:53

    Replace this code before this grdCommunication.DataSource = dsActivity;

    grdCommunication.DataBind();
    grdCommunication.DataSourceID="";
    

提交回复
热议问题