Home All Groups Group Topic Archive Search About
Author
8 Jun 2005 11:10 PM
Mythran
I'm trying to get the version of the web page my webcontrol is on.  When I
use the following code, I get the correct class, but I get the assembly
located in Temporary ASP.Net Files directory, instead of the assembly that
is referenced:

Me.Page.GetType().Assembly

Can anyone help me get the reference to the correct assembly (I do not have
a path to the correct assembly, just the Me.Page for the page the control
resides in).

Thanks!

Mythran

Author
8 Jun 2005 11:17 PM
Brock Allen
When you say "instead of the assembly that is referenced", what do you mean?
Do you mean the codebehind assembly? If so, then do this:

Me.Page.GetType().BaseType.Assembly

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> I'm trying to get the version of the web page my webcontrol is on.
> When I use the following code, I get the correct class, but I get the
> assembly located in Temporary ASP.Net Files directory, instead of the
> assembly that is referenced:
>
> Me.Page.GetType().Assembly
>
> Can anyone help me get the reference to the correct assembly (I do not
> have a path to the correct assembly, just the Me.Page for the page the
> control resides in).
>
> Thanks!
>
> Mythran
>