ASP.NET
From The Oxygene Language Wiki
This is a Platform topic
Feel free to add your notes to this topic below.
ASP.NET 2.0
Delphi Prism provides extensive support for creating ASP.NET 2.0 websites with Visual Studio.
ASP.NET provides two ways to create websites:
- Web sites - created via "File | New | Web site...", this style of site is directory-based, and has no project file like a normal Prism project would. It also allows for writing different pages in different languages within the same site.
- Web projects - created using a normal project template, these sites are project-based like other Prism projects, without some of the additional directory structures (like App_Data) that you find in a directory-based web site. However, one trade-off is that you can only use one language per site - any C# you want to bring in must be in a separate class library. The non-ASP.NET files (.asmx, .aspx, .ashx) of Web Projects are compiled by the IDE as a class library to the Bin/ directory which the ASP.NET code will reference.
Debug time
ASP.NET 2.0 no longer requires IIS to run and debug applications from within the IDE. The Visual Studio 2005 IDE comes with an updated version of the Cassini web server, so when you press F5 on your Web Project, it will (by default) launch Cassini - which will show up in your system tray - to run your project. The ASP.NET 2.0 runtime will build your code in the background, just as it does at Compile time (if rebuilding is needed).
Delphi Prism Support
Delphi Prism support includes the following items:
- Full Intellisense
- Full Code Completion from .aspx to .aspx.pas file
- Delphi Prism Syntax highlighting inside <script> and <%...%> tags inside the .aspx
- Full line mapping support:
- compiler errors will be reported in your .aspx file
- it is possible to set breakpoints and step through code lines in the .aspx file
See Also
Area: Oxygene Platforms
Platform Glossary — Keywords — Types — FAQ — How To