running a funstion from template column of datagrid

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

Guest

Hi,
I have put a datagrid on a aspx page named "PriceCheck".
I have added an templatecolumn and put a label to hat column.
The code as the custom binding expression of this labels text property is as
follows:

ctype(Page,PriceCheck).isinstock(Container.dataitem("unitsinstock"))

But when i run the project i get an error like: "Type PriceCheck is not
defined"..

I have written this code accourding to a sample code from a book. What's
wrong with thi sode? Why isn't ctype working?
Thanx for your attention..
meral guven
turkey
 
Perhaps PriceCheck is in a different namespace than the user control? You
must therefore either @Import the namespace or use the full name, which
would likely be PROJECT_NAME.PriceCheck

Karl
 
Back
Top