A
Adam J Knight
Hi all,
I have an Assembly in vs2003 (NameSpaceA), which i have made a reference to
in my current project.
This assembly contains CLASS B which is made up of utility function for
retrieving data.
I have this line in my code behind:
using NameSpaceA;
I have a server control in a page like so:
<aspropDownList ID="myID" DataTextField="myTextField"
DataValueField="myValueField" DataSource="<%# GetDataSource() %>"/>
My Question: How do i bridge the gap between these two items? So that the
call in the aspx page (GetDataSource), will find the method in
in NameSpaceA.
Do i simply make the methods within the class static?
Will these methods be visible, by simply having the 'using NameSpaceA'
declaration?
Some insight appreciated!!!!
Cheers,
Adam
I have an Assembly in vs2003 (NameSpaceA), which i have made a reference to
in my current project.
This assembly contains CLASS B which is made up of utility function for
retrieving data.
I have this line in my code behind:
using NameSpaceA;
I have a server control in a page like so:
<aspropDownList ID="myID" DataTextField="myTextField"
DataValueField="myValueField" DataSource="<%# GetDataSource() %>"/>
My Question: How do i bridge the gap between these two items? So that the
call in the aspx page (GetDataSource), will find the method in
in NameSpaceA.
Do i simply make the methods within the class static?
Will these methods be visible, by simply having the 'using NameSpaceA'
declaration?
Some insight appreciated!!!!
Cheers,
Adam