Parent of WebControl

M

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
 
B

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,142
Messages
2,570,820
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top