Possible to pass a struct from asp.net CodeBehind Page into a component method?

  • Thread starter Thread starter int
  • Start date Start date
I

int

I have a code behind page that uses a struct that's declared inside of it in
order to pass information between the methods that are also defined inside
the code behind page.

However, I want to pass this struct by reference into a separate component's
method.

Is this possible? will I have to define the same struct inside the
components class? I have tried doing it several ways but no success..not
even sure it's possible as the compiler complains as not finding where the
struct is defined, initialized, etc...
 
int,

If you want the other components to be able to use the structure, then
you should define it in a separate assembly. Then, reference this assembly
from both assemblies (the ASP.NET page) and the component.

Hope this helps.
 
Back
Top