DataBinder

  • Thread starter Thread starter Daniel Groh
  • Start date Start date
D

Daniel Groh

Hi, i have the following DataBinder

<%# FormatURL(DataBinder.Eval(Container.DataItem,"cdBook")) %>

But I'm getting this trouble:
Compiler Error Message: CS1502: The best overloaded method match for 'AdminBooksOnline.ListBook.FormatURL(string)' has some invalid arguments



Does someone has any idea ?
 
You need to typecast DataBinder.Eval(...) to the type of the parameter for FormatURL method.

Eliyahu

Hi, i have the following DataBinder

<%# FormatURL(DataBinder.Eval(Container.DataItem,"cdBook")) %>

But I'm getting this trouble:
Compiler Error Message: CS1502: The best overloaded method match for 'AdminBooksOnline.ListBook.FormatURL(string)' has some invalid arguments



Does someone has any idea ?
 
Back
Top