2.0, Namespaces, Me.<controlname>

J

Jim Andersen

Could someone clarify this behaviour ?

In .Net 1.1 (Vis Stu 2003), I could make a Class module, a .vb file, with a
bunch of global functions.

In my aspx-pages I could then call those functions.

The "old" 1.1 project had name A, and the vb-file started with
Namespace A
Public module Module 1
Public Function ZZ

and in the CBF file the code started with
Namespace A

BUT
In 2.0 (Vis Stu 2005) the CBF can't "find" the functions. I have to type
A.ZZ. And if I then insert
Namespace A
in the top of the CBF, it suddenly can't "find" any of its controls. All my
Me.TextBox1 get a squigly line.

/jim
 
J

Jim Andersen

Juan T. Llibre said:
Are you placing the .vb file in the App_Code directory ?
Yes.

You should be able to use Intellisense for it, if you do.

Yes..... but I can't.

Antoher thing is, sometimes it "looses cantact" to referenced dlls also. In
the CBF I get squigly line under
Imports Microsoft.applicationblocks.data

and whereever I have a call to a function in there. But it compiles Ok, and
if I re-open the project the problem goes away.

/jim
 

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

Top