w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to add a aspx web page with no compilation

Typically, in a web application, all code behind files such as myNewPage.aspx.vb are compiled into a single DLL. the file itself is no longer required at run-time, and it makes no difference when copied to the output directory except exposing your code behind.

To do this without manually editing the project file, right click your target file myNewPage.aspx.vb then select properties. Make changes as in the following screen:

enter image
description here

Build Action: None - The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file.

Copy to Output Directory - This property specifies the conditions under which the selected source file will be copied to the output directory.

For more details, see VS2005 File Properties

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.