Hi everyone,
I have made a shared public function within a class that returns a data table. When i set the selectmethod of an objectdatasource to a function, i get the error :
The type specified in the TypeName property of ObjectDataSource 'ProjectDataSource' could not be found.
Anyone know why this is?
Also i have created a function within the class that returns a string, and then i executed that via the page and wrote the contents out to the page (just for make sure it works), but then i get the message :
Name [CLASSNAME] is not declared.
Why is it saying my class name is not declared? If i then put this code as a function within the page, it works fine!! But i need it in a class, so i can use the objectdatasource!!!
Any help would be grateful. Cheers
I have made a shared public function within a class that returns a data table. When i set the selectmethod of an objectdatasource to a function, i get the error :
The type specified in the TypeName property of ObjectDataSource 'ProjectDataSource' could not be found.
Anyone know why this is?
Also i have created a function within the class that returns a string, and then i executed that via the page and wrote the contents out to the page (just for make sure it works), but then i get the message :
Name [CLASSNAME] is not declared.
Why is it saying my class name is not declared? If i then put this code as a function within the page, it works fine!! But i need it in a class, so i can use the objectdatasource!!!
Any help would be grateful. Cheers