Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / November 2005

Tip: Looking for answers? Try searching our database.

Setup ASP.net Solution with existing asp.net site?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Hawthorne - 22 Nov 2005 17:45 GMT
We have already created a asp.net intranet that has about 400 aspx,ascx
pages in it.  The question is how do we setup visual studio to use this
existing website.  We used macromedia before and all we had to do was
setup a site and point it at the directory, how do we accomplish this?

The layout of the site is a follows

                               |----SubSection
               /---Non Public--|
               |               |----SubSection
               |               |
Root folder-----|               |----SubSection
               |
               |               |----SubSection
               \---Public------|
                               |----SubSection

The Non Public uses the windows authentication, and the public side
requires no authentication.  Each SubSection is basicaly a way for us to
keep each system seperate (ex. HR,Marketing,Administrative).  Some pages
in each subsection use ascx file in a different subsection.

Public and NonPublic are setup as applications in IIS but the
subsections are not.

-
Jason
Cowboy (Gregory A. Beamer) - 22 Nov 2005 18:24 GMT
As long as you have the web.config file(s) set up correctly for the
different types of sites, the different "roots", "sections" and
"subsections" become folders in the web project.

If you have different applications, for public and non-public (common with
different auth methods), set up three projects at different points in the
root and import the files from your DW project(s). You can have as many
projects as you desire in a single solution. This also gives you the option
of splitting into multiple solutions. It would be prudent to keep your
business logic out of the presentation layer.

Hope this helps.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think Outside the Box!
***********************************************

> We have already created a asp.net intranet that has about 400 aspx,ascx
> pages in it.  The question is how do we setup visual studio to use this
[quoted text clipped - 23 lines]
> -
> Jason
Jason Hawthorne - 22 Nov 2005 20:12 GMT
Ok.  I got my projects setup.  I had to click the Show all files button
then select everything and choose include in project.  Now I have a
different problem.  

We created all our files in a single file format, no code-behind.  I
realize we will have a lot of copy paste to do.  But my question is how
can we just add a code behind file to an existing single file aspx page?
Everytime I create a codebehind file (aspx.vb) and set the codebehind in
the page (aspx) it doesn't show them as being linked in my solution
explorer.  

> As long as you have the web.config file(s) set up correctly for the
> different types of sites, the different "roots", "sections" and
[quoted text clipped - 8 lines]
>
> Hope this helps.
Cowboy (Gregory A. Beamer) - 28 Nov 2005 14:31 GMT
If you simply add the file and the appropriate CodeBehind= portion in the @
directive tag, you will be able to compile.

If I remember correctly, to get the link to show up in 1.1, you will have to
edit the project file. This is a shortcoming of the project system when
dealing with web projects.

I am not sure with 2.0, but I would assume it is either automagic (project
searched on open) or in the solution file (yuck).

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think Outside the Box!
***********************************************

> Ok.  I got my projects setup.  I had to click the Show all files button
> then select everything and choose include in project.  Now I have a
[quoted text clipped - 21 lines]
>>
>> Hope this helps.
Jason Hawthorne - 29 Nov 2005 18:03 GMT
When I included files into my project it asked if I wanted to creat the
class file for them.  So I clicked yes and it created a seperate class
file for every single page.  Which is nice because now I can just copy
the code.  

But I get an error on page load.  It says "Could not load type
'projectname.filename'".  I can see that the codebehind page it actually
a class and it looks like the aspx file is trying to call the class but
cannot load the file for some reason.  Any ideas?

> If you simply add the file and the appropriate CodeBehind= portion in the @
> directive tag, you will be able to compile.
[quoted text clipped - 5 lines]
> I am not sure with 2.0, but I would assume it is either automagic (project
> searched on open) or in the solution file (yuck).

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.