PC Review


Reply
Thread Tools Rate Thread

Code block access Module method in vb.net

 
 
SonicChen
Guest
Posts: n/a
 
      3rd Sep 2008
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
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      4th Sep 2008
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)


"SonicChen" wrote:

> 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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access module does not continue past the Filter Method =?Utf-8?B?ZGFsYmlu?= Microsoft Access VBA Modules 15 23rd Mar 2006 01:50 AM
Access 97 Module Code Fie Microsoft Access Queries 2 10th Feb 2006 06:59 PM
VB6 - Access ADP Database Custom Property / Or Read Line of Code In ADP Code Module WhatTha Microsoft Access VBA Modules 0 24th Jan 2006 03:26 PM
"Statement invalid outside Type block" Access 97 VBA Module StarfishJoe Microsoft Access Form Coding 2 17th Jun 2005 10:31 PM
SQL INSERT INTO in Access VBA code module =?Utf-8?B?RGF2aWQgV2lkZW5lcg==?= Microsoft Access 5 17th Jan 2005 02:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 PM.