Code block access Module method in vb.net

S

SonicChen

I can't use Module's method in page's code script block in vb.net

I know it's friend and global class, but i should be able to access it if it
does in code behind.

Appreciated for any response
 
B

bruce barker

friend limits access to the same assembly. the aspx pages are in a different
assembly then the module or the codebehind (which is only in the module
assembly with a web application).

while c# supplies a work around (InternalsVisibleTo attribute), I don't
believe the aspx page compielr supports it.

you should just make the methods public.

-- bruce (sqlwork.com)
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top