convert web site to web app

  • Thread starter Thread starter John A Grandy
  • Start date Start date
J

John A Grandy

VS 2005 SP1

Has anyone converted an ASP.NET Web Site to an ASP.NET Web Application
Project ?

Any pointers ?

Thanks.
 
besides creating the project file, you need to create the hacky designer
files so the code behind can access the aspx controls (he designer file
is a partial class that declares all controls as protected). probably
just editing each aspx file in the ide will create the designer files.

in some cases you will need to change control references to FindControl.
this is because in websites the codebehind is a true partial class,
while in a web application the codebehind is more of the inheritance
model. (see partial class rules for separate assemblies for more info)

-- bruce (sqlwork.com)
 
Depending on the extent of the site, you can also create a new web app and
import existing. If the nesting is not too deep, this should not take much
time.

I generally try to keep as much app logic in libraries, so neither is an
advantage to me. Your mileage may vary.

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

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
Back
Top