עזרה דחופה עם datasource
אני מקבלת את הודעת השגיאה הבאה Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition. כאשר זה הקוד שלי:
אני מקבלת את הודעת השגיאה הבאה Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition. כאשר זה הקוד שלי:
getSQL(ref ds);//מחזיר לי dataset GridView1.DataSource = ds; GridView1.DataBind();
ובצד הלקוח<asp:GridView ID="GridView1" runat="server"> </asp:GridView>
זה מאד פשוט-ואין לי בשום מקום הגדרה של DataSourceID ולכן אני לא מבינה למה הארור הזה צץ!!!! בבקשה תענו!!!