it is often necessary to maintain old sites. Such sites generally have a large number of files, ASP, JPG, and JS. during testing, a directory (SITE) is usually created ), A brain is put below, but the problem arises at the time of release. It takes a lot of time to copy these files, which makes people very impatient. What you really need is the app_code.dll file. to solve this problem, configure ASP. Program is provided for compiling net2.0.
Add the following in Web. config:Code
-------------------------------
<Compilation DEBUG = "true">
<Buildproviders>
<Add extension = ". jpg" type = "system. Web. Compilation. ignorefilebuildprovider"/>
<Add extension = ". asp" type = "system. Web. Compilation. ignorefilebuildprovider"/>
<Add extension = ". GIF" type = "system. Web. Compilation. ignorefilebuildprovider"/>
<Add extension = ". SWF" type = "system. Web. Compilation. ignorefilebuildprovider"/>
<Add extension = ". PNG" type = "system. Web. Compilation. ignorefilebuildprovider"/>
</Buildproviders>
...........
</Compilation>
All files with the above extension will not be copied when the site is released.