A
Adam J Knight
Hi all,
I have created a class that contains static method; these method return db
data.
If i use the following code in my code behind all works fine:
ddlMyDropDownList.DataSource = myClass.GetData()
If i code it into my page like so:
<aspropDownList ID="test" DataSource="<%# myClass.GetData()%>"
Runat="server"/>
I get an error saying myClass is not availble in this context ect..
Any thoughts..???
Cheers,
Adam
I have created a class that contains static method; these method return db
data.
If i use the following code in my code behind all works fine:
ddlMyDropDownList.DataSource = myClass.GetData()
If i code it into my page like so:
<aspropDownList ID="test" DataSource="<%# myClass.GetData()%>"
Runat="server"/>
I get an error saying myClass is not availble in this context ect..
Any thoughts..???
Cheers,
Adam