Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > assigned namespace

Reply
Thread Tools

assigned namespace

 
 
Nirosh
Guest
Posts: n/a
 
      06-05-2007
Hi All,

This should be a quite old question, but any way..

Why visual studio 2005 does not assigned the default namespace to the web
pages when creates a web site type project.. please explain?

Nirosh.


 
Reply With Quote
 
 
 
 
T Samualson
Guest
Posts: n/a
 
      06-05-2007
Not sure the answer to your q but you can set the default namespace in your
project. Right click on your project and select "properties". In the
"application" tab you can set your default namespace.



"Nirosh" <> wrote in message
news:...
> Hi All,
>
> This should be a quite old question, but any way..
>
> Why visual studio 2005 does not assigned the default namespace to the web
> pages when creates a web site type project.. please explain?
>
> Nirosh.
>



 
Reply With Quote
 
 
 
 
Nirosh
Guest
Posts: n/a
 
      06-05-2007
Thanks for the reply.. But that setting is not for "web site" type project..
it won't work in my case as I am developing a web site.

Nirosh.

"T Samualson" <> wrote in message
news:Oo%...
> Not sure the answer to your q but you can set the default namespace in
> your project. Right click on your project and select "properties". In the
> "application" tab you can set your default namespace.
>
>
>
> "Nirosh" <> wrote in message
> news:...
>> Hi All,
>>
>> This should be a quite old question, but any way..
>>
>> Why visual studio 2005 does not assigned the default namespace to the web
>> pages when creates a web site type project.. please explain?
>>
>> Nirosh.
>>

>
>



 
Reply With Quote
 
T Samualson
Guest
Posts: n/a
 
      06-05-2007
It should work. Are you using VS 2005 with the service pack installed?

I use it for my web applications. There is a difference between web
application projects and web site projects so to take advantage of it use a
web application.

"Nirosh" <> wrote in message
news:...
> Thanks for the reply.. But that setting is not for "web site" type
> project.. it won't work in my case as I am developing a web site.
>
> Nirosh.
>
> "T Samualson" <> wrote in message
> news:Oo%...
>> Not sure the answer to your q but you can set the default namespace in
>> your project. Right click on your project and select "properties". In
>> the "application" tab you can set your default namespace.
>>
>>
>>
>> "Nirosh" <> wrote in message
>> news:...
>>> Hi All,
>>>
>>> This should be a quite old question, but any way..
>>>
>>> Why visual studio 2005 does not assigned the default namespace to the
>>> web pages when creates a web site type project.. please explain?
>>>
>>> Nirosh.
>>>

>>
>>

>
>



 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      06-06-2007
if asp.net 2.0 web site, the page file and the code behind are compiled
into one dll (they are actually treated as one source via partial
classes). as the code behind is the same "source" as the page there is
no need for a namespace. in a web site project aspnet_compiler compiles
all the code.


if you make a web project (I don't care for them), vs2005 compiles the
code behind in a dll it places in the bin folder, and then has the
aspnet_compiler to compile the pages. so if you specify a project
namespace, it still only on the code behind files (which now use
inhertance instead if partial classes).


not actully sure why you want a namespace on web pages, as they are
standalone units. normally you create shared code as a seperate library
project, where you would use a namespace.


note: in the web.config, you can specify default namespaces to include
in pages via the <namespaces> config section.



-- bruce (sqlwork.com)

Nirosh wrote:
> Hi All,
>
> This should be a quite old question, but any way..
>
> Why visual studio 2005 does not assigned the default namespace to the web
> pages when creates a web site type project.. please explain?
>
> Nirosh.
>
>

 
Reply With Quote
 
Nirosh
Guest
Posts: n/a
 
      06-06-2007
Nope sir, web application is for the people who are struggling to get
themselves converted from ASP.NET 1.X to 2.0.. Not for pure ASP.NET 2.0
projects.. just look around you will realize that you aren't getting any
advantage of using web application projects..

Nirosh.


"T Samualson" <> wrote in message
news:...
> It should work. Are you using VS 2005 with the service pack installed?
>
> I use it for my web applications. There is a difference between web
> application projects and web site projects so to take advantage of it use
> a web application.
>
> "Nirosh" <> wrote in message
> news:...
>> Thanks for the reply.. But that setting is not for "web site" type
>> project.. it won't work in my case as I am developing a web site.
>>
>> Nirosh.
>>
>> "T Samualson" <> wrote in message
>> news:Oo%...
>>> Not sure the answer to your q but you can set the default namespace in
>>> your project. Right click on your project and select "properties". In
>>> the "application" tab you can set your default namespace.
>>>
>>>
>>>
>>> "Nirosh" <> wrote in message
>>> news:...
>>>> Hi All,
>>>>
>>>> This should be a quite old question, but any way..
>>>>
>>>> Why visual studio 2005 does not assigned the default namespace to the
>>>> web pages when creates a web site type project.. please explain?
>>>>
>>>> Nirosh.
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Nirosh
Guest
Posts: n/a
 
      06-06-2007
Thanks for the detail reply..



As to answering to your question about why I need a namespace, let me answer
you with a question.. Mate do you have a fence for your garden.. simple
reason is that I needed them to group them well as I am having too many
controls when I type ASP. I am finding it harder to maintain.. so I need
fence around same type of controls.. if you just have a system with 10 20
pages it will work for you.. I am talking about something lot larger than
that.



So.. with your expertise... what is your suggestion.. I can manualy add the
namespace and I can refer to the assembly with the name space.. not using
ASP so is it a bad practise..



Thanks again for the detail reply..

Nirosh.


"bruce barker" <> wrote in message
news:...
> if asp.net 2.0 web site, the page file and the code behind are compiled
> into one dll (they are actually treated as one source via partial
> classes). as the code behind is the same "source" as the page there is no
> need for a namespace. in a web site project aspnet_compiler compiles all
> the code.
>
>
> if you make a web project (I don't care for them), vs2005 compiles the
> code behind in a dll it places in the bin folder, and then has the
> aspnet_compiler to compile the pages. so if you specify a project
> namespace, it still only on the code behind files (which now use
> inhertance instead if partial classes).
>
>
> not actully sure why you want a namespace on web pages, as they are
> standalone units. normally you create shared code as a seperate library
> project, where you would use a namespace.
>
>
> note: in the web.config, you can specify default namespaces to include in
> pages via the <namespaces> config section.
>
>
>
> -- bruce (sqlwork.com)
>
> Nirosh wrote:
>> Hi All,
>>
>> This should be a quite old question, but any way..
>>
>> Why visual studio 2005 does not assigned the default namespace to the web
>> pages when creates a web site type project.. please explain?
>>
>> Nirosh.



 
Reply With Quote
 
Daniel Salazar
Guest
Posts: n/a
 
      01-16-2011
xxx

> On Tuesday, June 05, 2007 5:07 PM Nirosh wrote:


> Hi All,
>
> This should be a quite old question, but any way..
>
> Why visual studio 2005 does not assigned the default namespace to the web
> pages when creates a web site type project.. please explain?
>
> Nirosh.



>> On Tuesday, June 05, 2007 5:22 PM T Samualson wrote:


>> Not sure the answer to your q but you can set the default namespace in your
>> project. Right click on your project and select "properties". In the
>> "application" tab you can set your default namespace.



>>> On Tuesday, June 05, 2007 5:37 PM Nirosh wrote:


>>> Thanks for the reply.. But that setting is not for "web site" type project..
>>> it will not work in my case as I am developing a web site.
>>>
>>> Nirosh.



>>>> On Tuesday, June 05, 2007 5:53 PM T Samualson wrote:


>>>> It should work. Are you using VS 2005 with the service pack installed?
>>>>
>>>> I use it for my web applications. There is a difference between web
>>>> application projects and web site projects so to take advantage of it use a
>>>> web application.
>>>>
>>>> "Nirosh" <> wrote in message
>>>> news:...



>>>>> On Tuesday, June 05, 2007 8:07 PM bruce barker wrote:


>>>>> if asp.net 2.0 web site, the page file and the code behind are compiled
>>>>> into one dll (they are actually treated as one source via partial
>>>>> classes). as the code behind is the same "source" as the page there is
>>>>> no need for a namespace. in a web site project aspnet_compiler compiles
>>>>> all the code.
>>>>>
>>>>>
>>>>> if you make a web project (I don't care for them), vs2005 compiles the
>>>>> code behind in a dll it places in the bin folder, and then has the
>>>>> aspnet_compiler to compile the pages. so if you specify a project
>>>>> namespace, it still only on the code behind files (which now use
>>>>> inhertance instead if partial classes).
>>>>>
>>>>>
>>>>> not actully sure why you want a namespace on web pages, as they are
>>>>> standalone units. normally you create shared code as a seperate library
>>>>> project, where you would use a namespace.
>>>>>
>>>>>
>>>>> note: in the web.config, you can specify default namespaces to include
>>>>> in pages via the <namespaces> config section.
>>>>>
>>>>>
>>>>>
>>>>> -- bruce (sqlwork.com)
>>>>>
>>>>> Nirosh wrote:



>>>>>> On Tuesday, June 05, 2007 9:53 PM Nirosh wrote:


>>>>>> Nope sir, web application is for the people who are struggling to get
>>>>>> themselves converted from ASP.NET 1.X to 2.0.. Not for pure ASP.NET 2.0
>>>>>> projects.. just look around you will realize that you aren't getting any
>>>>>> advantage of using web application projects..
>>>>>>
>>>>>> Nirosh.
>>>>>>
>>>>>>
>>>>>> "T Samualson" <> wrote in message
>>>>>> news:...



>>>>>>> On Tuesday, June 05, 2007 10:03 PM Nirosh wrote:


>>>>>>> Thanks for the detail reply..
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> As to answering to your question about why I need a namespace, let me answer
>>>>>>> you with a question.. Mate do you have a fence for your garden.. simple
>>>>>>> reason is that I needed them to group them well as I am having too many
>>>>>>> controls when I type ASP. I am finding it harder to maintain.. so I need
>>>>>>> fence around same type of controls.. if you just have a system with 10 20
>>>>>>> pages it will work for you.. I am talking about something lot larger than
>>>>>>> that.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> So.. with your expertise... what is your suggestion.. I can manualy add the
>>>>>>> namespace and I can refer to the assembly with the name space.. not using
>>>>>>> ASP so is it a bad practise..
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks again for the detail reply..
>>>>>>>
>>>>>>> Nirosh.
>>>>>>>
>>>>>>>
>>>>>>> "bruce barker" <> wrote in message
>>>>>>> news:...



>>>>>>> Submitted via EggHeadCafe
>>>>>>> Creating Google Motion Charts from Excel data
>>>>>>> http://www.eggheadcafe.com/tutorials...xcel-data.aspx

 
Reply With Quote
 
Daniel Salazar
Guest
Posts: n/a
 
      01-16-2011
ss

> On Tuesday, June 05, 2007 5:07 PM Nirosh wrote:


> Hi All,
>
> This should be a quite old question, but any way..
>
> Why visual studio 2005 does not assigned the default namespace to the web
> pages when creates a web site type project.. please explain?
>
> Nirosh.



>> On Tuesday, June 05, 2007 5:22 PM T Samualson wrote:


>> Not sure the answer to your q but you can set the default namespace in your
>> project. Right click on your project and select "properties". In the
>> "application" tab you can set your default namespace.



>>> On Tuesday, June 05, 2007 5:37 PM Nirosh wrote:


>>> Thanks for the reply.. But that setting is not for "web site" type project..
>>> it will not work in my case as I am developing a web site.
>>>
>>> Nirosh.



>>>> On Tuesday, June 05, 2007 5:53 PM T Samualson wrote:


>>>> It should work. Are you using VS 2005 with the service pack installed?
>>>>
>>>> I use it for my web applications. There is a difference between web
>>>> application projects and web site projects so to take advantage of it use a
>>>> web application.
>>>>
>>>> "Nirosh" <> wrote in message
>>>> news:...



>>>>> On Tuesday, June 05, 2007 8:07 PM bruce barker wrote:


>>>>> if asp.net 2.0 web site, the page file and the code behind are compiled
>>>>> into one dll (they are actually treated as one source via partial
>>>>> classes). as the code behind is the same "source" as the page there is
>>>>> no need for a namespace. in a web site project aspnet_compiler compiles
>>>>> all the code.
>>>>>
>>>>>
>>>>> if you make a web project (I don't care for them), vs2005 compiles the
>>>>> code behind in a dll it places in the bin folder, and then has the
>>>>> aspnet_compiler to compile the pages. so if you specify a project
>>>>> namespace, it still only on the code behind files (which now use
>>>>> inhertance instead if partial classes).
>>>>>
>>>>>
>>>>> not actully sure why you want a namespace on web pages, as they are
>>>>> standalone units. normally you create shared code as a seperate library
>>>>> project, where you would use a namespace.
>>>>>
>>>>>
>>>>> note: in the web.config, you can specify default namespaces to include
>>>>> in pages via the <namespaces> config section.
>>>>>
>>>>>
>>>>>
>>>>> -- bruce (sqlwork.com)
>>>>>
>>>>> Nirosh wrote:



>>>>>> On Tuesday, June 05, 2007 9:53 PM Nirosh wrote:


>>>>>> Nope sir, web application is for the people who are struggling to get
>>>>>> themselves converted from ASP.NET 1.X to 2.0.. Not for pure ASP.NET 2.0
>>>>>> projects.. just look around you will realize that you aren't getting any
>>>>>> advantage of using web application projects..
>>>>>>
>>>>>> Nirosh.
>>>>>>
>>>>>>
>>>>>> "T Samualson" <> wrote in message
>>>>>> news:...



>>>>>>> On Tuesday, June 05, 2007 10:03 PM Nirosh wrote:


>>>>>>> Thanks for the detail reply..
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> As to answering to your question about why I need a namespace, let me answer
>>>>>>> you with a question.. Mate do you have a fence for your garden.. simple
>>>>>>> reason is that I needed them to group them well as I am having too many
>>>>>>> controls when I type ASP. I am finding it harder to maintain.. so I need
>>>>>>> fence around same type of controls.. if you just have a system with 10 20
>>>>>>> pages it will work for you.. I am talking about something lot larger than
>>>>>>> that.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> So.. with your expertise... what is your suggestion.. I can manualy add the
>>>>>>> namespace and I can refer to the assembly with the name space.. not using
>>>>>>> ASP so is it a bad practise..
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks again for the detail reply..
>>>>>>>
>>>>>>> Nirosh.
>>>>>>>
>>>>>>>
>>>>>>> "bruce barker" <> wrote in message
>>>>>>> news:...



>>>>>>>> On Saturday, January 15, 2011 7:15 PM Daniel Salazar wrote:


>>>>>>>> xxx



>>>>>>>> Submitted via EggHeadCafe
>>>>>>>> WCF Generic DataContract object Serializer
>>>>>>>> http://www.eggheadcafe.com/tutorials...erializer.aspx

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
ERROR CS0234: The type or namespace name 'DataAccessHelper' does not exist in the namespace 'BCC' (are you missing an assembly reference?) li.eddie@gmail.com ASP .Net 0 01-06-2006 11:31 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Reaching into the default namespace when using another namespace. Jason Heyes C++ 1 11-19-2004 02:36 AM
Namespace: Is it a scope or a namespace? Anonymous C++ 3 08-18-2003 01:31 PM
Help:Why can't I use namespace System.Web? It is said that this namespace doesn't exist. But it should exist. Èý¹â ASP .Net 1 07-29-2003 04:31 PM



Advertisments