473,385 Members | 1,944 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,385 software developers and data experts.

.NET 2.0 and namespaces in web apps

I was reading "Rick Strahl's WebLog" and he mentions that in .net 2.0 web
apps, there are no namespaces (I verified this by creating simple web app).

I converted a VS 2003 web app that had namespaces and the VS 2005 still has
them in there. Should I remove them?

I'm also having an issue dynamically loading user controls and think it
might have to do with the use of namespaces.

Amil
Mar 14 '06 #1
2 1006
Too funny,

I just bumped into the same problem with my VS 2005 app that was converted
from VS 2003.

http://msdn.microsoft.com/asp.net/re...net.asp#issue1

This might help you understand the issue and some ways to work around it
(not clean ways).

Rob.
"Amil" <Am********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I was reading "Rick Strahl's WebLog" and he mentions that in .net 2.0 web
apps, there are no namespaces (I verified this by creating simple web app).

I converted a VS 2003 web app that had namespaces and the VS 2005 still
has them in there. Should I remove them?

I'm also having an issue dynamically loading user controls and think it
might have to do with the use of namespaces.

Amil

Mar 14 '06 #2
Rob,

Thanks for the link. This reiterated the proper use of doing a LoadControl.
Specifically, it indicates that the "Reference Control" directive should be
used. When I use just this directive, I still get my exceptions, but only
sporatically (can't figure out why they start). If I add an additional
"Register" directive (by dragging the control to the page, then deleting it
so that the directive has the correct syntax), then my problem appears to go
away for good. Hum... It is most confusing since I have other pages that
only have the Reference directive and they appear to work fine. I've seen
stuff about cleaning up the .NET cache and restarting IIS. I've tried that,
but without the Register, it seems to come back after a bit.

Amil

"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:ul**************@TK2MSFTNGP14.phx.gbl...
Too funny,

I just bumped into the same problem with my VS 2005 app that was converted
from VS 2003.

http://msdn.microsoft.com/asp.net/re...net.asp#issue1

This might help you understand the issue and some ways to work around it
(not clean ways).

Rob.
"Amil" <Am********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I was reading "Rick Strahl's WebLog" and he mentions that in .net 2.0 web
apps, there are no namespaces (I verified this by creating simple web
app).

I converted a VS 2003 web app that had namespaces and the VS 2005 still
has them in there. Should I remove them?

I'm also having an issue dynamically loading user controls and think it
might have to do with the use of namespaces.

Amil


Mar 14 '06 #3

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

Similar topics

27
by: poiuz24 | last post by:
aeh, this may be stupid, but could s.b. please explain to me why the following won't link (gcc 3.3)? foo.cpp = """ namespace foo { int main () { return 0; }
17
by: clintonG | last post by:
Using 2.0 with Master Pages and a GlobalBaseClass for the content pages. I understand the easy part -- the hierarchical structure of a namespace naming convention -- but the 2.0 IDE does not...
1
by: Vincent V | last post by:
Hey i am just starting a new project and from the start i want to make sure my app is as Object Orientated as possible I have a couple of questions in relation to this Question 1: Should i...
2
by: Thom Little | last post by:
In 1.1 I could have two namespaces in the same webgspace. The webspace is on a remote server. I compile the namespaces separately and check them out on localhost and when they are checked-out I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.