This is a migrated thread and some comments may be shown as answers.

Rad Menu (Datasource and DataSourceID)

2 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fabian Raul Jofre
Top achievements
Rank 2
Fabian Raul Jofre asked on 12 Jul 2010, 02:50 PM
 
I ´m not using DatasourceID, and I don´t know why happend this.  
This is a common error, some times happend. And I don´t know which is the problem.  
Thank´s. 



Server Error in '/' Application.


Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 

 
[InvalidOperationException: Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.]
   System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +10834996
   System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +28
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

 

 

 

2 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 12 Jul 2010, 05:02 PM
Hi Fabian Raul Jofre,

In this forum post they say you must set the DataSourceID to null and just use DataSource property.

If this doesn't helps could you please send us the full code you are using so we can help you?

Thank you.

All the best,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Fabian Raul Jofre
Top achievements
Rank 2
answered on 21 Jul 2010, 05:29 PM
I read the article I will try this.
In the case that´s happend again i send you the full code.
thank´s
Tags
Grid
Asked by
Fabian Raul Jofre
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Fabian Raul Jofre
Top achievements
Rank 2
Share this question
or