Hi,
I'm having a few issues adapting to new 2.0 "website" project vs. the
old 1.1 "web application". One of the major issues I'm having is with
the notion of namespaces. Using the old way, I could add a directory to
my project (say, "Controls"), then add a user control to that
directory. From an .aspx I could then import the namespace ("using
[projectname].Controls";), and then reference that control.
With the 2.0 way of doing things, if I add a directory, then add a
control to that directory the code behind class is name something like
"Controls_ucControlName", and I can't for the life of me find out how
to reference this control outside of that directory, and it doesn't
appear in the Intellisense dropdown or the Object Browser.
There must be an obvious way to do this which is lost on me.
Thanks. 13 2273
Kobee,
Suggest you download and install the Web Application Project add-in. This
provides behaviors and semantics that are much more like the original ASP.NET
1.1 Web project.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote: Hi,
I'm having a few issues adapting to new 2.0 "website" project vs. the old 1.1 "web application". One of the major issues I'm having is with the notion of namespaces. Using the old way, I could add a directory to my project (say, "Controls"), then add a user control to that directory. From an .aspx I could then import the namespace ("using [projectname].Controls";), and then reference that control.
With the 2.0 way of doing things, if I add a directory, then add a control to that directory the code behind class is name something like "Controls_ucControlName", and I can't for the life of me find out how to reference this control outside of that directory, and it doesn't appear in the Intellisense dropdown or the Object Browser.
There must be an obvious way to do this which is lost on me.
Thanks.
I was reading about that - that seems to be the way to. Unfortunately
with my current project I've already come too far to try and retrofit
the web app model into it. I upraded this project from 1.1 to 2.0 and
that was painful enough as it is.
Is it just me, or is this whole "Web Site" idea from MS a bad idea?
Peter wrote: Kobee, Suggest you download and install the Web Application Project add-in. This provides behaviors and semantics that are much more like the original ASP.NET 1.1 Web project. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
Hi,
I'm having a few issues adapting to new 2.0 "website" project vs. the old 1.1 "web application". One of the major issues I'm having is with the notion of namespaces. Using the old way, I could add a directory to my project (say, "Controls"), then add a user control to that directory. From an .aspx I could then import the namespace ("using [projectname].Controls";), and then reference that control.
With the 2.0 way of doing things, if I add a directory, then add a control to that directory the code behind class is name something like "Controls_ucControlName", and I can't for the life of me find out how to reference this control outside of that directory, and it doesn't appear in the Intellisense dropdown or the Object Browser.
There must be an obvious way to do this which is lost on me.
Thanks.
I think the Dev Team was responding to earlier feedback,
in which developers requested a more granular approach,
i.e., not having a single assembly with the whole ball of wax in it.
Then, after the product launched, developers requested more control
over the number and naming of assemblies, and the WAP was created.
The whole thing is not so much on the "website vs. application" paradigm,
but on having the flexibility to control the build process.
Think of it this way : now you can do it either way, with way more control
than you ever had over the way your apps are compiled and deployed!
:-)
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/
===================================
"Kobee" <db*****@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com... I was reading about that - that seems to be the way to. Unfortunately with my current project I've already come too far to try and retrofit the web app model into it. I upraded this project from 1.1 to 2.0 and that was painful enough as it is.
Is it just me, or is this whole "Web Site" idea from MS a bad idea? Peter wrote: Kobee, Suggest you download and install the Web Application Project add-in. This provides behaviors and semantics that are much more like the original ASP.NET 1.1 Web project. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
> Hi, > > I'm having a few issues adapting to new 2.0 "website" project vs. the > old 1.1 "web application". One of the major issues I'm having is with > the notion of namespaces. Using the old way, I could add a directory to > my project (say, "Controls"), then add a user control to that > directory. From an .aspx I could then import the namespace ("using > [projectname].Controls";), and then reference that control. > > With the 2.0 way of doing things, if I add a directory, then add a > control to that directory the code behind class is name something like > "Controls_ucControlName", and I can't for the life of me find out how > to reference this control outside of that directory, and it doesn't > appear in the Intellisense dropdown or the Object Browser. > > There must be an obvious way to do this which is lost on me. > > Thanks. > >
OK, I see your point. But to go back to original question, with the 2.0
Web Site project, how would I go about referencing a control created in
another directory?
Thanks.
Juan T. Llibre wrote: I think the Dev Team was responding to earlier feedback, in which developers requested a more granular approach, i.e., not having a single assembly with the whole ball of wax in it.
Then, after the product launched, developers requested more control over the number and naming of assemblies, and the WAP was created.
The whole thing is not so much on the "website vs. application" paradigm, but on having the flexibility to control the build process.
Think of it this way : now you can do it either way, with way more control than you ever had over the way your apps are compiled and deployed!
:-) 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/ =================================== "Kobee" <db*****@gmail.com> wrote in message news:11**********************@i40g2000cwc.googlegr oups.com...I was reading about that - that seems to be the way to. Unfortunately with my current project I've already come too far to try and retrofit the web app model into it. I upraded this project from 1.1 to 2.0 and that was painful enough as it is.
Is it just me, or is this whole "Web Site" idea from MS a bad idea? Peter wrote: Kobee, Suggest you download and install the Web Application Project add-in. This provides behaviors and semantics that are much more like the original ASP.NET 1.1 Web project. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
> Hi, > > I'm having a few issues adapting to new 2.0 "website" project vs. the > old 1.1 "web application". One of the major issues I'm having is with > the notion of namespaces. Using the old way, I could add a directoryto > my project (say, "Controls"), then add a user control to that > directory. From an .aspx I could then import the namespace ("using > [projectname].Controls";), and then reference that control. > > With the 2.0 way of doing things, if I add a directory, then add a > control to that directory the code behind class is name something like > "Controls_ucControlName", and I can't for the life of me find out how > to reference this control outside of that directory, and it doesn't > appear in the Intellisense dropdown or the Object Browser. > > There must be an obvious way to do this which is lost on me. > > Thanks. > >
re: to go back to original question, with the 2.0 Web Site project, how would I go about referencing a control created in another directory?
Scott Guthrie has a solution : http://weblogs.asp.net/scottgu/archi...28/423888.aspx
Rick Strahl has the solution, too : http://west-wind.com/weblog/posts/3016.aspx
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/
===================================
"Kobee" <db*****@gmail.com> wrote in message
news:11**********************@r2g2000cwb.googlegro ups.com...
OK, I see your point. But to go back to original question, with the 2.0
Web Site project, how would I go about referencing a control created in
another directory?
Thanks.
Juan T. Llibre wrote: I think the Dev Team was responding to earlier feedback, in which developers requested a more granular approach, i.e., not having a single assembly with the whole ball of wax in it.
Then, after the product launched, developers requested more control over the number and naming of assemblies, and the WAP was created.
The whole thing is not so much on the "website vs. application" paradigm, but on having the flexibility to control the build process.
Think of it this way : now you can do it either way, with way more control than you ever had over the way your apps are compiled and deployed!
:-) 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/ =================================== "Kobee" <db*****@gmail.com> wrote in message news:11**********************@i40g2000cwc.googlegr oups.com...I was reading about that - that seems to be the way to. Unfortunately with my current project I've already come too far to try and retrofit the web app model into it. I upraded this project from 1.1 to 2.0 and that was painful enough as it is.
Is it just me, or is this whole "Web Site" idea from MS a bad idea? Peter wrote: Kobee, Suggest you download and install the Web Application Project add-in. This provides behaviors and semantics that are much more like the original ASP.NET 1.1 Web project. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
> Hi, > > I'm having a few issues adapting to new 2.0 "website" project vs. the > old 1.1 "web application". One of the major issues I'm having is with > the notion of namespaces. Using the old way, I could add a directory to > my project (say, "Controls"), then add a user control to that > directory. From an .aspx I could then import the namespace ("using > [projectname].Controls";), and then reference that control. > > With the 2.0 way of doing things, if I add a directory, then add a > control to that directory the code behind class is name something like > "Controls_ucControlName", and I can't for the life of me find out how > to reference this control outside of that directory, and it doesn't > appear in the Intellisense dropdown or the Object Browser. > > There must be an obvious way to do this which is lost on me. > > Thanks. > >
Thanks for the links. Interesting...
Looks like the 1.1 style architecture of building pages with
dynamically loaded user-controls is not the way to go anymore.
Cheers.
Juan T. Llibre wrote: re: to go back to original question, with the 2.0 Web Site project, how would I go about referencing a control created in another directory?
Scott Guthrie has a solution : http://weblogs.asp.net/scottgu/archi...28/423888.aspx
Rick Strahl has the solution, too : http://west-wind.com/weblog/posts/3016.aspx
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/ =================================== "Kobee" <db*****@gmail.com> wrote in message news:11**********************@r2g2000cwb.googlegro ups.com... OK, I see your point. But to go back to original question, with the 2.0 Web Site project, how would I go about referencing a control created in another directory?
Thanks.
Juan T. Llibre wrote: I think the Dev Team was responding to earlier feedback, in which developers requested a more granular approach, i.e., not having a single assembly with the whole ball of wax in it.
Then, after the product launched, developers requested more control over the number and naming of assemblies, and the WAP was created.
The whole thing is not so much on the "website vs. application" paradigm, but on having the flexibility to control the build process.
Think of it this way : now you can do it either way, with way more control than you ever had over the way your apps are compiled and deployed!
:-) 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/ =================================== "Kobee" <db*****@gmail.com> wrote in message news:11**********************@i40g2000cwc.googlegr oups.com...I was reading about that - that seems to be the way to. Unfortunately with my current project I've already come too far to try and retrofit the web app model into it. I upraded this project from 1.1 to 2.0 and that was painful enough as it is.
Is it just me, or is this whole "Web Site" idea from MS a bad idea? Peter wrote: > Kobee, > Suggest you download and install the Web Application Project add-in.This > provides behaviors and semantics that are much more like the original ASP.NET > 1.1 Web project. > Peter > > -- > Co-founder, Eggheadcafe.com developer portal: > http://www.eggheadcafe.com > UnBlog: > http://petesbloggerama.blogspot.com > > > > > "Kobee" wrote: > > > Hi, > > > > I'm having a few issues adapting to new 2.0 "website" project vs. the > > old 1.1 "web application". One of the major issues I'm having is with > > the notion of namespaces. Using the old way, I could add a directory to > > my project (say, "Controls"), then add a user control to that > > directory. From an .aspx I could then import the namespace ("using > > [projectname].Controls";), and then reference that control. > > > > With the 2.0 way of doing things, if I add a directory, then add a > > control to that directory the code behind class is name something like > > "Controls_ucControlName", and I can't for the life of me find out how > > to reference this control outside of that directory, and it doesn't > > appear in the Intellisense dropdown or the Object Browser. > > > > There must be an obvious way to do this which is lost on me. > > > > Thanks. > > > >
So long as the compiled codebehind for the ASCX userControl is in the bin
folder, the actual ASCX file should be able to be placed anywhere in the app.
I use both WebSite and Web Application Projects, but I'm really leaning more
and more toward the WAP. Also, it is not that hard to convert - see Rick
Strahl's link that was provided (it could be in another of his posts).
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote: Thanks for the links. Interesting...
Looks like the 1.1 style architecture of building pages with dynamically loaded user-controls is not the way to go anymore.
Cheers.
Juan T. Llibre wrote: re: to go back to original question, with the 2.0 Web Site project, how would I go about referencing a control created in another directory?
Scott Guthrie has a solution : http://weblogs.asp.net/scottgu/archi...28/423888.aspx
Rick Strahl has the solution, too : http://west-wind.com/weblog/posts/3016.aspx
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/ =================================== "Kobee" <db*****@gmail.com> wrote in message news:11**********************@r2g2000cwb.googlegro ups.com... OK, I see your point. But to go back to original question, with the 2.0 Web Site project, how would I go about referencing a control created in another directory?
Thanks.
Juan T. Llibre wrote: I think the Dev Team was responding to earlier feedback, in which developers requested a more granular approach, i.e., not having a single assembly with the whole ball of wax in it.
Then, after the product launched, developers requested more control over the number and naming of assemblies, and the WAP was created.
The whole thing is not so much on the "website vs. application" paradigm, but on having the flexibility to control the build process.
Think of it this way : now you can do it either way, with way more control than you ever had over the way your apps are compiled and deployed!
:-) 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/ =================================== "Kobee" <db*****@gmail.com> wrote in message news:11**********************@i40g2000cwc.googlegr oups.com... >I was reading about that - that seems to be the way to. Unfortunately > with my current project I've already come too far to try and retrofit > the web app model into it. I upraded this project from 1.1 to 2.0 and > that was painful enough as it is. > > Is it just me, or is this whole "Web Site" idea from MS a bad idea? > > > > Peter wrote: >> Kobee, >> Suggest you download and install the Web Application Project add-in. This >> provides behaviors and semantics that are much more like the original ASP.NET >> 1.1 Web project. >> Peter >> >> -- >> Co-founder, Eggheadcafe.com developer portal: >> http://www.eggheadcafe.com >> UnBlog: >> http://petesbloggerama.blogspot.com >> >> >> >> >> "Kobee" wrote: >> >> > Hi, >> > >> > I'm having a few issues adapting to new 2.0 "website" project vs. the >> > old 1.1 "web application". One of the major issues I'm having is with >> > the notion of namespaces. Using the old way, I could add a directory to >> > my project (say, "Controls"), then add a user control to that >> > directory. From an .aspx I could then import the namespace ("using >> > [projectname].Controls";), and then reference that control. >> > >> > With the 2.0 way of doing things, if I add a directory, then add a >> > control to that directory the code behind class is name something like >> > "Controls_ucControlName", and I can't for the life of me find out how >> > to reference this control outside of that directory, and it doesn't >> > appear in the Intellisense dropdown or the Object Browser. >> > >> > There must be an obvious way to do this which is lost on me. >> > >> > Thanks. >> > >> > >
might you elaborate a bit on why you think WAP is better? reason for asking
is that i am responsible for driving patterns and practices in my
organization and i am just thru penning a white paper on the migration path.
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:C8**********************************@microsof t.com... So long as the compiled codebehind for the ASCX userControl is in the bin folder, the actual ASCX file should be able to be placed anywhere in the app.
I use both WebSite and Web Application Projects, but I'm really leaning more and more toward the WAP. Also, it is not that hard to convert - see Rick Strahl's link that was provided (it could be in another of his posts).
Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
Thanks for the links. Interesting...
Looks like the 1.1 style architecture of building pages with dynamically loaded user-controls is not the way to go anymore.
Cheers.
Juan T. Llibre wrote: > re: > > to go back to original question, with the 2.0 Web Site project, > > how would I go about referencing a control created in another > > directory? > > Scott Guthrie has a solution : > http://weblogs.asp.net/scottgu/archi...28/423888.aspx > > Rick Strahl has the solution, too : > http://west-wind.com/weblog/posts/3016.aspx > > > > > > 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/ > =================================== > "Kobee" <db*****@gmail.com> wrote in message > news:11**********************@r2g2000cwb.googlegro ups.com... > OK, I see your point. But to go back to original question, with the 2.0 > Web Site project, how would I go about referencing a control created in > another directory? > > Thanks. > > Juan T. Llibre wrote: > > I think the Dev Team was responding to earlier feedback, > > in which developers requested a more granular approach, > > i.e., not having a single assembly with the whole ball of wax in it. > > > > Then, after the product launched, developers requested more control > > over the number and naming of assemblies, and the WAP was created. > > > > The whole thing is not so much on the "website vs. application" > > paradigm, > > but on having the flexibility to control the build process. > > > > Think of it this way : now you can do it either way, with way more > > control > > than you ever had over the way your apps are compiled and deployed! > > > > :-) > > > > > > > > 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/ > > =================================== > > "Kobee" <db*****@gmail.com> wrote in message > > news:11**********************@i40g2000cwc.googlegr oups.com... > > >I was reading about that - that seems to be the way to. > > >Unfortunately > > > with my current project I've already come too far to try and > > > retrofit > > > the web app model into it. I upraded this project from 1.1 to 2.0 > > > and > > > that was painful enough as it is. > > > > > > Is it just me, or is this whole "Web Site" idea from MS a bad idea? > > > > > > > > > > > > Peter wrote: > > >> Kobee, > > >> Suggest you download and install the Web Application Project > > >> add-in. This > > >> provides behaviors and semantics that are much more like the > > >> original ASP.NET > > >> 1.1 Web project. > > >> Peter > > >> > > >> -- > > >> Co-founder, Eggheadcafe.com developer portal: > > >> http://www.eggheadcafe.com > > >> UnBlog: > > >> http://petesbloggerama.blogspot.com > > >> > > >> > > >> > > >> > > >> "Kobee" wrote: > > >> > > >> > Hi, > > >> > > > >> > I'm having a few issues adapting to new 2.0 "website" project > > >> > vs. the > > >> > old 1.1 "web application". One of the major issues I'm having is > > >> > with > > >> > the notion of namespaces. Using the old way, I could add a > > >> > directory to > > >> > my project (say, "Controls"), then add a user control to that > > >> > directory. From an .aspx I could then import the namespace > > >> > ("using > > >> > [projectname].Controls";), and then reference that control. > > >> > > > >> > With the 2.0 way of doing things, if I add a directory, then add > > >> > a > > >> > control to that directory the code behind class is name > > >> > something like > > >> > "Controls_ucControlName", and I can't for the life of me find > > >> > out how > > >> > to reference this control outside of that directory, and it > > >> > doesn't > > >> > appear in the Intellisense dropdown or the Object Browser. > > >> > > > >> > There must be an obvious way to do this which is lost on me. > > >> > > > >> > Thanks. > > >> > > > >> > > > >
Alvin, I'll try.
1) it "feels" better- especially if you come from ASP.NET 1.1 which many
people do.
2) Having a single named Assembly could make it easier to update a site.
3) I don't like the "stub" aspx files that "web site" with precompiled
creates, nor do I like the colleciton of strangely named assemblies.
4) may be easier to handle user Controls - they work like in ASP.NET 1.1
Again, its personal preference and I use both app types - but that's a short
list for starters.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Alvin Bruney [MVP]" wrote: might you elaborate a bit on why you think WAP is better? reason for asking is that i am responsible for driving patterns and practices in my organization and i am just thru penning a white paper on the migration path.
-- ________________________ Warm regards, Alvin Bruney [MVP ASP.NET]
[Shameless Author plug] Professional VSTO.NET - Wrox/Wiley The O.W.C. Black Book with .NET www.lulu.com/owc, Amazon Blog: http://www.msmvps.com/blogs/alvin -------------------------------------------------------
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message news:C8**********************************@microsof t.com... So long as the compiled codebehind for the ASCX userControl is in the bin folder, the actual ASCX file should be able to be placed anywhere in the app.
I use both WebSite and Web Application Projects, but I'm really leaning more and more toward the WAP. Also, it is not that hard to convert - see Rick Strahl's link that was provided (it could be in another of his posts).
Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
Thanks for the links. Interesting...
Looks like the 1.1 style architecture of building pages with dynamically loaded user-controls is not the way to go anymore.
Cheers.
Juan T. Llibre wrote: > re: > > to go back to original question, with the 2.0 Web Site project, > > how would I go about referencing a control created in another > > directory? > > Scott Guthrie has a solution : > http://weblogs.asp.net/scottgu/archi...28/423888.aspx > > Rick Strahl has the solution, too : > http://west-wind.com/weblog/posts/3016.aspx > > > > > > 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/ > =================================== > "Kobee" <db*****@gmail.com> wrote in message > news:11**********************@r2g2000cwb.googlegro ups.com... > OK, I see your point. But to go back to original question, with the 2.0 > Web Site project, how would I go about referencing a control created in > another directory? > > Thanks. > > Juan T. Llibre wrote: > > I think the Dev Team was responding to earlier feedback, > > in which developers requested a more granular approach, > > i.e., not having a single assembly with the whole ball of wax in it. > > > > Then, after the product launched, developers requested more control > > over the number and naming of assemblies, and the WAP was created. > > > > The whole thing is not so much on the "website vs. application" > > paradigm, > > but on having the flexibility to control the build process. > > > > Think of it this way : now you can do it either way, with way more > > control > > than you ever had over the way your apps are compiled and deployed! > > > > :-) > > > > > > > > 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/ > > =================================== > > "Kobee" <db*****@gmail.com> wrote in message > > news:11**********************@i40g2000cwc.googlegr oups.com... > > >I was reading about that - that seems to be the way to. > > >Unfortunately > > > with my current project I've already come too far to try and > > > retrofit > > > the web app model into it. I upraded this project from 1.1 to 2.0 > > > and > > > that was painful enough as it is. > > > > > > Is it just me, or is this whole "Web Site" idea from MS a bad idea? > > > > > > > > > > > > Peter wrote: > > >> Kobee, > > >> Suggest you download and install the Web Application Project > > >> add-in. This > > >> provides behaviors and semantics that are much more like the > > >> original ASP.NET > > >> 1.1 Web project. > > >> Peter > > >> > > >> -- > > >> Co-founder, Eggheadcafe.com developer portal: > > >> http://www.eggheadcafe.com > > >> UnBlog: > > >> http://petesbloggerama.blogspot.com > > >> > > >> > > >> > > >> > > >> "Kobee" wrote: > > >> > > >> > Hi, > > >> > > > >> > I'm having a few issues adapting to new 2.0 "website" project > > >> > vs. the > > >> > old 1.1 "web application". One of the major issues I'm having is > > >> > with > > >> > the notion of namespaces. Using the old way, I could add a > > >> > directory to > > >> > my project (say, "Controls"), then add a user control to that > > >> > directory. From an .aspx I could then import the namespace > > >> > ("using > > >> > [projectname].Controls";), and then reference that control. > > >> > > > >> > With the 2.0 way of doing things, if I add a directory, then add > > >> > a > > >> > control to that directory the code behind class is name > > >> > something like > > >> > "Controls_ucControlName", and I can't for the life of me find > > >> > out how > > >> > to reference this control outside of that directory, and it > > >> > doesn't > > >> > appear in the Intellisense dropdown or the Object Browser. > > >> > > > >> > There must be an obvious way to do this which is lost on me. > > >> > > > >> > Thanks. > > >> > > > >> > > > >
Can you use the precompile exe with the web application project? I've
used this with asp.net 2.0 website projects, and it's pretty slick.
Peter wrote: Alvin, I'll try. 1) it "feels" better- especially if you come from ASP.NET 1.1 which many people do. 2) Having a single named Assembly could make it easier to update a site. 3) I don't like the "stub" aspx files that "web site" with precompiled creates, nor do I like the colleciton of strangely named assemblies. 4) may be easier to handle user Controls - they work like in ASP.NET 1.1
Again, its personal preference and I use both app types - but that's a short list for starters. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Alvin Bruney [MVP]" wrote:
might you elaborate a bit on why you think WAP is better? reason for asking is that i am responsible for driving patterns and practices in my organization and i am just thru penning a white paper on the migration path.
-- ________________________ Warm regards, Alvin Bruney [MVP ASP.NET]
[Shameless Author plug] Professional VSTO.NET - Wrox/Wiley The O.W.C. Black Book with .NET www.lulu.com/owc, Amazon Blog: http://www.msmvps.com/blogs/alvin -------------------------------------------------------
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message news:C8**********************************@microsof t.com... So long as the compiled codebehind for the ASCX userControl is in thebin folder, the actual ASCX file should be able to be placed anywhere in the app.
I use both WebSite and Web Application Projects, but I'm really leaning more and more toward the WAP. Also, it is not that hard to convert - see Rick Strahl's link that was provided (it could be in another of his posts).
Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
> Thanks for the links. Interesting... > > Looks like the 1.1 style architecture of building pages with > dynamically loaded user-controls is not the way to go anymore. > > Cheers. > > Juan T. Llibre wrote: > > re: > > > to go back to original question, with the 2.0 Web Site project, > > > how would I go about referencing a control created in another > > > directory? > > > > Scott Guthrie has a solution : > > http://weblogs.asp.net/scottgu/archi...28/423888.aspx > > > > Rick Strahl has the solution, too : > > http://west-wind.com/weblog/posts/3016.aspx > > > > > > > > > > > > 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/ > > =================================== > > "Kobee" <db*****@gmail.com> wrote in message > > news:11**********************@r2g2000cwb.googlegro ups.com... > > OK, I see your point. But to go back to original question, with the 2.0 > > Web Site project, how would I go about referencing a control created in > > another directory? > > > > Thanks. > > > > Juan T. Llibre wrote: > > > I think the Dev Team was responding to earlier feedback, > > > in which developers requested a more granular approach, > > > i.e., not having a single assembly with the whole ball of wax init. > > > > > > Then, after the product launched, developers requested more control > > > over the number and naming of assemblies, and the WAP was created. > > > > > > The whole thing is not so much on the "website vs. application" > > > paradigm, > > > but on having the flexibility to control the build process. > > > > > > Think of it this way : now you can do it either way, with way more > > > control > > > than you ever had over the way your apps are compiled and deployed! > > > > > > :-) > > > > > > > > > > > > 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/ > > > =================================== > > > "Kobee" <db*****@gmail.com> wrote in message > > > news:11**********************@i40g2000cwc.googlegr oups.com... > > > >I was reading about that - that seems to be the way to. > > > >Unfortunately > > > > with my current project I've already come too far to try and > > > > retrofit > > > > the web app model into it. I upraded this project from 1.1 to 2.0 > > > > and > > > > that was painful enough as it is. > > > > > > > > Is it just me, or is this whole "Web Site" idea from MS a bad idea? > > > > > > > > > > > > > > > > Peter wrote: > > > >> Kobee, > > > >> Suggest you download and install the Web Application Project > > > >> add-in. This > > > >> provides behaviors and semantics that are much more like the > > > >> original ASP.NET > > > >> 1.1 Web project. > > > >> Peter > > > >> > > > >> -- > > > >> Co-founder, Eggheadcafe.com developer portal: > > > >> http://www.eggheadcafe.com > > > >> UnBlog: > > > >> http://petesbloggerama.blogspot.com > > > >> > > > >> > > > >> > > > >> > > > >> "Kobee" wrote: > > > >> > > > >> > Hi, > > > >> > > > > >> > I'm having a few issues adapting to new 2.0 "website" project > > > >> > vs. the > > > >> > old 1.1 "web application". One of the major issues I'm having is > > > >> > with > > > >> > the notion of namespaces. Using the old way, I could add a > > > >> > directory to > > > >> > my project (say, "Controls"), then add a user control to that > > > >> > directory. From an .aspx I could then import the namespace > > > >> > ("using > > > >> > [projectname].Controls";), and then reference that control. > > > >> > > > > >> > With the 2.0 way of doing things, if I add a directory, then add > > > >> > a > > > >> > control to that directory the code behind class is name > > > >> > something like > > > >> > "Controls_ucControlName", and I can't for the life of me find > > > >> > out how > > > >> > to reference this control outside of that directory, and it > > > >> > doesn't > > > >> > appear in the Intellisense dropdown or the Object Browser. > > > >> > > > > >> > There must be an obvious way to do this which is lost on me. > > > >> > > > > >> > Thanks. > > > >> > > > > >> > > > > > > >
Kobee,
That's the whole point! A Web Application Project by it's very nature+ IS
already "precompiled".
You have a single assembly that goes in the /bin folder.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote: Can you use the precompile exe with the web application project? I've used this with asp.net 2.0 website projects, and it's pretty slick.
Peter wrote: Alvin, I'll try. 1) it "feels" better- especially if you come from ASP.NET 1.1 which many people do. 2) Having a single named Assembly could make it easier to update a site. 3) I don't like the "stub" aspx files that "web site" with precompiled creates, nor do I like the colleciton of strangely named assemblies. 4) may be easier to handle user Controls - they work like in ASP.NET 1.1
Again, its personal preference and I use both app types - but that's a short list for starters. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Alvin Bruney [MVP]" wrote:
might you elaborate a bit on why you think WAP is better? reason for asking is that i am responsible for driving patterns and practices in my organization and i am just thru penning a white paper on the migration path.
-- ________________________ Warm regards, Alvin Bruney [MVP ASP.NET]
[Shameless Author plug] Professional VSTO.NET - Wrox/Wiley The O.W.C. Black Book with .NET www.lulu.com/owc, Amazon Blog: http://www.msmvps.com/blogs/alvin -------------------------------------------------------
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message news:C8**********************************@microsof t.com... > So long as the compiled codebehind for the ASCX userControl is in the bin > folder, the actual ASCX file should be able to be placed anywhere in the > app. > > I use both WebSite and Web Application Projects, but I'm really leaning > more > and more toward the WAP. Also, it is not that hard to convert - see Rick > Strahl's link that was provided (it could be in another of his posts). > > Peter > > -- > Co-founder, Eggheadcafe.com developer portal: > http://www.eggheadcafe.com > UnBlog: > http://petesbloggerama.blogspot.com > > > > > "Kobee" wrote: > >> Thanks for the links. Interesting... >> >> Looks like the 1.1 style architecture of building pages with >> dynamically loaded user-controls is not the way to go anymore. >> >> Cheers. >> >> Juan T. Llibre wrote: >> > re: >> > > to go back to original question, with the 2.0 Web Site project, >> > > how would I go about referencing a control created in another >> > > directory? >> > >> > Scott Guthrie has a solution : >> > http://weblogs.asp.net/scottgu/archi...28/423888.aspx >> > >> > Rick Strahl has the solution, too : >> > http://west-wind.com/weblog/posts/3016.aspx >> > >> > >> > >> > >> > >> > 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/ >> > =================================== >> > "Kobee" <db*****@gmail.com> wrote in message >> > news:11**********************@r2g2000cwb.googlegro ups.com... >> > OK, I see your point. But to go back to original question, with the 2.0 >> > Web Site project, how would I go about referencing a control created in >> > another directory? >> > >> > Thanks. >> > >> > Juan T. Llibre wrote: >> > > I think the Dev Team was responding to earlier feedback, >> > > in which developers requested a more granular approach, >> > > i.e., not having a single assembly with the whole ball of wax in it. >> > > >> > > Then, after the product launched, developers requested more control >> > > over the number and naming of assemblies, and the WAP was created. >> > > >> > > The whole thing is not so much on the "website vs. application" >> > > paradigm, >> > > but on having the flexibility to control the build process. >> > > >> > > Think of it this way : now you can do it either way, with way more >> > > control >> > > than you ever had over the way your apps are compiled and deployed! >> > > >> > > :-) >> > > >> > > >> > > >> > > 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/ >> > > =================================== >> > > "Kobee" <db*****@gmail.com> wrote in message >> > > news:11**********************@i40g2000cwc.googlegr oups.com... >> > > >I was reading about that - that seems to be the way to. >> > > >Unfortunately >> > > > with my current project I've already come too far to try and >> > > > retrofit >> > > > the web app model into it. I upraded this project from 1.1 to 2.0 >> > > > and >> > > > that was painful enough as it is. >> > > > >> > > > Is it just me, or is this whole "Web Site" idea from MS a bad idea? >> > > > >> > > > >> > > > >> > > > Peter wrote: >> > > >> Kobee, >> > > >> Suggest you download and install the Web Application Project >> > > >> add-in. This >> > > >> provides behaviors and semantics that are much more like the >> > > >> original ASP.NET >> > > >> 1.1 Web project. >> > > >> Peter >> > > >> >> > > >> -- >> > > >> Co-founder, Eggheadcafe.com developer portal: >> > > >> http://www.eggheadcafe.com >> > > >> UnBlog: >> > > >> http://petesbloggerama.blogspot.com >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> "Kobee" wrote: >> > > >> >> > > >> > Hi, >> > > >> > >> > > >> > I'm having a few issues adapting to new 2.0 "website" project >> > > >> > vs. the >> > > >> > old 1.1 "web application". One of the major issues I'm having is >> > > >> > with >> > > >> > the notion of namespaces. Using the old way, I could add a >> > > >> > directory to >> > > >> > my project (say, "Controls"), then add a user control to that >> > > >> > directory. From an .aspx I could then import the namespace >> > > >> > ("using >> > > >> > [projectname].Controls";), and then reference that control. >> > > >> > >> > > >> > With the 2.0 way of doing things, if I add a directory, then add >> > > >> > a >> > > >> > control to that directory the code behind class is name >> > > >> > something like >> > > >> > "Controls_ucControlName", and I can't for the life of me find >> > > >> > out how >> > > >> > to reference this control outside of that directory, and it >> > > >> > doesn't >> > > >> > appear in the Intellisense dropdown or the Object Browser. >> > > >> > >> > > >> > There must be an obvious way to do this which is lost on me. >> > > >> > >> > > >> > Thanks. >> > > >> > >> > > >> > >> > > > >> >>
Thanks Peter,
That makes sense now that I think about it. So the 2.0 precompiler
basically does what the old 1.1 framework did right out of the box.
Seems almost like a step backwards to go to "website" from "web
application". Can't help but get the feeling that MS created the
website project to "dumb down" creating a web app and make it more
accessible.
Peter wrote: Kobee, That's the whole point! A Web Application Project by it's very nature+ IS already "precompiled". You have a single assembly that goes in the /bin folder.
Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
Can you use the precompile exe with the web application project? I've used this with asp.net 2.0 website projects, and it's pretty slick.
Peter wrote: Alvin, I'll try. 1) it "feels" better- especially if you come from ASP.NET 1.1 which many people do. 2) Having a single named Assembly could make it easier to update a site. 3) I don't like the "stub" aspx files that "web site" with precompiled creates, nor do I like the colleciton of strangely named assemblies. 4) may be easier to handle user Controls - they work like in ASP.NET 1.1
Again, its personal preference and I use both app types - but that's a short list for starters. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Alvin Bruney [MVP]" wrote:
> might you elaborate a bit on why you think WAP is better? reason for asking > is that i am responsible for driving patterns and practices in my > organization and i am just thru penning a white paper on the migration path. > > -- > ________________________ > Warm regards, > Alvin Bruney [MVP ASP.NET] > > [Shameless Author plug] > Professional VSTO.NET - Wrox/Wiley > The O.W.C. Black Book with .NET > www.lulu.com/owc, Amazon > Blog: http://www.msmvps.com/blogs/alvin > ------------------------------------------------------- > > > "Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message > news:C8**********************************@microsof t.com... > > So long as the compiled codebehind for the ASCX userControl is inthe bin > > folder, the actual ASCX file should be able to be placed anywherein the > > app. > > > > I use both WebSite and Web Application Projects, but I'm really leaning > > more > > and more toward the WAP. Also, it is not that hard to convert - see Rick > > Strahl's link that was provided (it could be in another of his posts). > > > > Peter > > > > -- > > Co-founder, Eggheadcafe.com developer portal: > > http://www.eggheadcafe.com > > UnBlog: > > http://petesbloggerama.blogspot.com > > > > > > > > > > "Kobee" wrote: > > > >> Thanks for the links. Interesting... > >> > >> Looks like the 1.1 style architecture of building pages with > >> dynamically loaded user-controls is not the way to go anymore. > >> > >> Cheers. > >> > >> Juan T. Llibre wrote: > >> > re: > >> > > to go back to original question, with the 2.0 Web Site project, > >> > > how would I go about referencing a control created in another > >> > > directory? > >> > > >> > Scott Guthrie has a solution : > >> > http://weblogs.asp.net/scottgu/archi...28/423888.aspx > >> > > >> > Rick Strahl has the solution, too : > >> > http://west-wind.com/weblog/posts/3016.aspx > >> > > >> > > >> > > >> > > >> > > >> > 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/ > >> > =================================== > >> > "Kobee" <db*****@gmail.com> wrote in message > >> > news:11**********************@r2g2000cwb.googlegro ups.com... > >> > OK, I see your point. But to go back to original question, with the 2.0 > >> > Web Site project, how would I go about referencing a control created in > >> > another directory? > >> > > >> > Thanks. > >> > > >> > Juan T. Llibre wrote: > >> > > I think the Dev Team was responding to earlier feedback, > >> > > in which developers requested a more granular approach, > >> > > i.e., not having a single assembly with the whole ball of wax in it. > >> > > > >> > > Then, after the product launched, developers requested more control > >> > > over the number and naming of assemblies, and the WAP was created. > >> > > > >> > > The whole thing is not so much on the "website vs. application" > >> > > paradigm, > >> > > but on having the flexibility to control the build process. > >> > > > >> > > Think of it this way : now you can do it either way, with way more > >> > > control > >> > > than you ever had over the way your apps are compiled and deployed! > >> > > > >> > > :-) > >> > > > >> > > > >> > > > >> > > 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/ > >> > > =================================== > >> > > "Kobee" <db*****@gmail.com> wrote in message > >> > > news:11**********************@i40g2000cwc.googlegr oups.com... > >> > > >I was reading about that - that seems to be the way to. > >> > > >Unfortunately > >> > > > with my current project I've already come too far to try and > >> > > > retrofit > >> > > > the web app model into it. I upraded this project from 1.1to 2.0 > >> > > > and > >> > > > that was painful enough as it is. > >> > > > > >> > > > Is it just me, or is this whole "Web Site" idea from MS a bad idea? > >> > > > > >> > > > > >> > > > > >> > > > Peter wrote: > >> > > >> Kobee, > >> > > >> Suggest you download and install the Web Application Project > >> > > >> add-in. This > >> > > >> provides behaviors and semantics that are much more like the > >> > > >> original ASP.NET > >> > > >> 1.1 Web project. > >> > > >> Peter > >> > > >> > >> > > >> -- > >> > > >> Co-founder, Eggheadcafe.com developer portal: > >> > > >> http://www.eggheadcafe.com > >> > > >> UnBlog: > >> > > >> http://petesbloggerama.blogspot.com > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> "Kobee" wrote: > >> > > >> > >> > > >> > Hi, > >> > > >> > > >> > > >> > I'm having a few issues adapting to new 2.0 "website" project > >> > > >> > vs. the > >> > > >> > old 1.1 "web application". One of the major issues I'm having is > >> > > >> > with > >> > > >> > the notion of namespaces. Using the old way, I could add a > >> > > >> > directory to > >> > > >> > my project (say, "Controls"), then add a user control to that > >> > > >> > directory. From an .aspx I could then import the namespace > >> > > >> > ("using > >> > > >> > [projectname].Controls";), and then reference that control. > >> > > >> > > >> > > >> > With the 2.0 way of doing things, if I add a directory,then add > >> > > >> > a > >> > > >> > control to that directory the code behind class is name > >> > > >> > something like > >> > > >> > "Controls_ucControlName", and I can't for the life of me find > >> > > >> > out how > >> > > >> > to reference this control outside of that directory, and it > >> > > >> > doesn't > >> > > >> > appear in the Intellisense dropdown or the Object Browser. > >> > > >> > > >> > > >> > There must be an obvious way to do this which is lost on me. > >> > > >> > > >> > > >> > Thanks. > >> > > >> > > >> > > >> > > >> > > > > >> > >> > > >
Whatever the thinking was, they've now made up the difference by allowing us
to choose which model we want to use. The Latin phrase "De gustibus non
disputandum est" (Regarding choice, there is no dispute) applies.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote: Thanks Peter,
That makes sense now that I think about it. So the 2.0 precompiler basically does what the old 1.1 framework did right out of the box. Seems almost like a step backwards to go to "website" from "web application". Can't help but get the feeling that MS created the website project to "dumb down" creating a web app and make it more accessible.
Peter wrote: Kobee, That's the whole point! A Web Application Project by it's very nature+ IS already "precompiled". You have a single assembly that goes in the /bin folder.
Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Kobee" wrote:
Can you use the precompile exe with the web application project? I've used this with asp.net 2.0 website projects, and it's pretty slick.
Peter wrote: > Alvin, I'll try. > 1) it "feels" better- especially if you come from ASP.NET 1.1 which many > people do. > 2) Having a single named Assembly could make it easier to update a site. > 3) I don't like the "stub" aspx files that "web site" with precompiled > creates, nor do I like the colleciton of strangely named assemblies. > 4) may be easier to handle user Controls - they work like in ASP.NET 1.1 > > Again, its personal preference and I use both app types - but that's a short > list for starters. > Peter > > > -- > Co-founder, Eggheadcafe.com developer portal: > http://www.eggheadcafe.com > UnBlog: > http://petesbloggerama.blogspot.com > > > > > "Alvin Bruney [MVP]" wrote: > > > might you elaborate a bit on why you think WAP is better? reason for asking > > is that i am responsible for driving patterns and practices in my > > organization and i am just thru penning a white paper on the migration path. > > > > -- > > ________________________ > > Warm regards, > > Alvin Bruney [MVP ASP.NET] > > > > [Shameless Author plug] > > Professional VSTO.NET - Wrox/Wiley > > The O.W.C. Black Book with .NET > > www.lulu.com/owc, Amazon > > Blog: http://www.msmvps.com/blogs/alvin > > ------------------------------------------------------- > > > > > > "Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message > > news:C8**********************************@microsof t.com... > > > So long as the compiled codebehind for the ASCX userControl is in the bin > > > folder, the actual ASCX file should be able to be placed anywhere in the > > > app. > > > > > > I use both WebSite and Web Application Projects, but I'm really leaning > > > more > > > and more toward the WAP. Also, it is not that hard to convert - see Rick > > > Strahl's link that was provided (it could be in another of his posts). > > > > > > Peter > > > > > > -- > > > Co-founder, Eggheadcafe.com developer portal: > > > http://www.eggheadcafe.com > > > UnBlog: > > > http://petesbloggerama.blogspot.com > > > > > > > > > > > > > > > "Kobee" wrote: > > > > > >> Thanks for the links. Interesting... > > >> > > >> Looks like the 1.1 style architecture of building pages with > > >> dynamically loaded user-controls is not the way to go anymore. > > >> > > >> Cheers. > > >> > > >> Juan T. Llibre wrote: > > >> > re: > > >> > > to go back to original question, with the 2.0 Web Site project, > > >> > > how would I go about referencing a control created in another > > >> > > directory? > > >> > > > >> > Scott Guthrie has a solution : > > >> > http://weblogs.asp.net/scottgu/archi...28/423888.aspx > > >> > > > >> > Rick Strahl has the solution, too : > > >> > http://west-wind.com/weblog/posts/3016.aspx > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > 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/ > > >> > =================================== > > >> > "Kobee" <db*****@gmail.com> wrote in message > > >> > news:11**********************@r2g2000cwb.googlegro ups.com... > > >> > OK, I see your point. But to go back to original question, with the 2.0 > > >> > Web Site project, how would I go about referencing a control created in > > >> > another directory? > > >> > > > >> > Thanks. > > >> > > > >> > Juan T. Llibre wrote: > > >> > > I think the Dev Team was responding to earlier feedback, > > >> > > in which developers requested a more granular approach, > > >> > > i.e., not having a single assembly with the whole ball of wax in it. > > >> > > > > >> > > Then, after the product launched, developers requested more control > > >> > > over the number and naming of assemblies, and the WAP was created. > > >> > > > > >> > > The whole thing is not so much on the "website vs. application" > > >> > > paradigm, > > >> > > but on having the flexibility to control the build process. > > >> > > > > >> > > Think of it this way : now you can do it either way, with way more > > >> > > control > > >> > > than you ever had over the way your apps are compiled and deployed! > > >> > > > > >> > > :-) > > >> > > > > >> > > > > >> > > > > >> > > 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/ > > >> > > =================================== > > >> > > "Kobee" <db*****@gmail.com> wrote in message > > >> > > news:11**********************@i40g2000cwc.googlegr oups.com... > > >> > > >I was reading about that - that seems to be the way to. > > >> > > >Unfortunately > > >> > > > with my current project I've already come too far to try and > > >> > > > retrofit > > >> > > > the web app model into it. I upraded this project from 1.1 to 2.0 > > >> > > > and > > >> > > > that was painful enough as it is. > > >> > > > > > >> > > > Is it just me, or is this whole "Web Site" idea from MS a bad idea? > > >> > > > > > >> > > > > > >> > > > > > >> > > > Peter wrote: > > >> > > >> Kobee, > > >> > > >> Suggest you download and install the Web Application Project > > >> > > >> add-in. This > > >> > > >> provides behaviors and semantics that are much more like the > > >> > > >> original ASP.NET > > >> > > >> 1.1 Web project. > > >> > > >> Peter > > >> > > >> > > >> > > >> -- > > >> > > >> Co-founder, Eggheadcafe.com developer portal: > > >> > > >> http://www.eggheadcafe.com > > >> > > >> UnBlog: > > >> > > >> http://petesbloggerama.blogspot.com > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> "Kobee" wrote: > > >> > > >> > > >> > > >> > Hi, > > >> > > >> > > > >> > > >> > I'm having a few issues adapting to new 2.0 "website" project > > >> > > >> > vs. the > > >> > > >> > old 1.1 "web application". One of the major issues I'm having is > > >> > > >> > with > > >> > > >> > the notion of namespaces. Using the old way, I could add a > > >> > > >> > directory to > > >> > > >> > my project (say, "Controls"), then add a user control to that > > >> > > >> > directory. From an .aspx I could then import the namespace > > >> > > >> > ("using > > >> > > >> > [projectname].Controls";), and then reference that control. > > >> > > >> > > > >> > > >> > With the 2.0 way of doing things, if I add a directory, then add > > >> > > >> > a > > >> > > >> > control to that directory the code behind class is name > > >> > > >> > something like > > >> > > >> > "Controls_ucControlName", and I can't for the life of me find > > >> > > >> > out how > > >> > > >> > to reference this control outside of that directory, and it > > >> > > >> > doesn't > > >> > > >> > appear in the Intellisense dropdown or the Object Browser. > > >> > > >> > > > >> > > >> > There must be an obvious way to do this which is lost on me. > > >> > > >> > > > >> > > >> > Thanks. > > >> > > >> > > > >> > > >> > > > >> > > > > > >> > > >> > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mindful_Spirit |
last post by:
I'm trying to set up a basic email feed back form
like
this, and was wondering about some basic configuration settings. I
have used code from
this
website. I have it working just fine. I'm...
|
by: Paul# |
last post by:
I want to create an aspnet app at:
http://gisims/website/apps/AdvViewer
Each time it gives me a "Web access Failed" dialog box.
I have 2 options now:
1) retry at a different location - I...
|
by: Jose Perez |
last post by:
Dear All,
We are experiencing a problem with web.config and the fact that it's
settings are being "inherited" other applications.
Our default website is configured to run "MyApplication1". The...
|
by: RCS |
last post by:
All,
When I create a website locally, I have that little Administration tool (the
little icon in the Solution Explorer - or under Website | Web Site
Administration) - but when I connect to a 2.0...
|
by: Nathan Sokalski |
last post by:
I recently converted some ASP.NET 1.1 projects of mine, created with Visual
Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so
that I could use ASP.NET 2.0 (All my ASP.NET...
|
by: craigkenisston |
last post by:
I can't believe what is happening on my computer right now.
I have a web project, file-system based on something like
c:\Projects\ProjectX\www\.
I had to make some changes and testing in a...
|
by: clintonb |
last post by:
I converted a Web Site project to a Web Application project using the
instructions found on this page:
http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx
One thing I did differently...
|
by: Dave |
last post by:
I have a global.asax file with Application_Start defined and create some
static data there and in another module used in the asp.net application and
I realize that static data is shared amongst...
|
by: Brock |
last post by:
I'm doing a project from a QUE book by Gunderloy (70-305 MS test) for
what it's worth it's on pp. 531.... There are directions to "Right-
click the solution in Solution Explorer. Select Add, Add...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |