Developing ASP.NET Projects

QuickSharp includes support for developing ASP.NET applications using C#, providing syntax-highlighting and Code Assist for ASP.NET file types and the Cassini development web server for hosting and debugging applications.

Web server

The Cassini development web server allows ASP.NET applications to be developed without requiring a full IIS server setup. Launch the server from the Tools menu, by default it will host applications on port 8080 with the workspace folder as the document root. These settings can be changed in the Web Server page of the QuickSharp options editor.

File types

QuickSharp supports a range of ASP.NET file types including web forms (.aspx), web services (.asmx) and web handlers (.ashx) with support for code-behinds, master pages and configuration files. Each type may be created from the template menu; individual files will be opened in the editor but more complex types will be created directly in the workspace. For example, creating a new web form with a code-behind will create two files (.aspx and .cs). Similarly, files with fixed names such as 'web.config' will be created directly in the workspace rather than as 'untitled' files in the editor.

New ASP.NET projects can be created from the template menu by selecting 'Website' or 'Website with Master Page'. In each case a minimal but complete application will be created in the workspace.

Using Code Assist

Code Assist is available in several places within ASP.NET files. Code-behind, handler and service files are effectively C# source files and support Code Assist throughout. Inline code sections within forms and master pages also provide C# Code Assist.

Screenshot

Code Assist for web server controls is available within HTML sections of web forms and master pages. Type the opening tag prefix (e.g. '<asp:') and press Ctrl+Space to see the tags available.

Screenshot

If you have registered custom tag prefixes you can use them to lookup custom control tags in the same way. Within a tag use Code Assist to see the attributes available:

Screenshot

Finally, page directives and their attributes can be viewed in web forms and master pages:

Screenshot