473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

2.0, Namespaces, Me.<controlname>

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
Mar 6 '06 #1
2 1029
Are you placing the .vb file in the App_Code directory ?

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

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jim Andersen" <no****@nospam.dk> wrote in message news:es**************@TK2MSFTNGP12.phx.gbl...
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

Mar 6 '06 #2

"Juan T. Llibre" <no***********@nowhere.com> skrev i en meddelelse
news:eN**************@TK2MSFTNGP11.phx.gbl...
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


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jim Andersen" <no****@nospam.dk> wrote in message
news:es**************@TK2MSFTNGP12.phx.gbl...
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


Mar 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chuck | last post by:
I have a query that uses the query with the critera set to . We I run the query the msgbox pops up asking for the name information to be entered, but on the top (blue background) of the message box...
4
by: Sailor Foley | last post by:
Hey all, from the microsoft web site it is possible to place a control inside the object tag. They give a demo project from which to demonstrate this. The only problem is when i create my own...
5
by: Amelyan | last post by:
How can I get state of dynamically created controls (RadioButton, CheckBox, TextBox.Text) on post back when I click submit button? The only way I know is by traversing Response.Form enumberator;...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.