简体   繁体   中英

Code reuse in non-compiled project

I have a non-compiled web app which has several pages that all have similar functionality. If I compile the code it's easy to share classes between files, but I'm having trouble achieving the same without compiling. If I have an XmlRequest.cs file, how do I access its class from Compare.aspx.cs?

如果将XmlRequest.cs添加到名为App_Code的文件夹中,它将在整个Web应用程序中可用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM