Object is an ambigous reference

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Guys, i am gettting the error:
'Object is an ambigous reference' while compiling the code.

heres my code:

void MyDataGrid_Page(Object sender, DataGridPageChangedEventArgs e)
{
startindex = e.NewPageIndex * MyDataGrid.PageSize;
MyDataGrid.CurrentPageIndex=e.NewPageIndex;
BindDataGrid();
}

Please help

Thanks

Manny
 
Manny Chohan said:
Hi Guys, i am gettting the error:
'Object is an ambigous reference' while compiling the code.

That would suggest you have two Object classes defined. Have you defined a
class named Object or are you using a library that has?
 
Manny Chohan said:
had it figured....
needed full path system.object for it

That suggests that, as Daniel said, you're defining your own type
called Object. That's a *really* bad idea in terms of readability.
 
Back
Top