In an asp.net website, we can create a “CodeFile” for each .aspx file. which contains a C# partial class. And this .aspx web can activate functions like
protected void Create_Click(object sender, EventArgs e)
in this CodeFile for clicking a button.
I have another C# project, which has about 20 C# files. What I`m doing now is call the .exe of the project to do some processing. I was wondering is it possible that I can put the 20 C# files in the App_Code folder (or any other folder); then in the codeFile, call the functions inside all the C# files to do the processing instead using a compiled .exe file in my website?
All the 20 C# files is in namespace xx, at least they have
namespace xx
{
class example1
{
in every files. and I have have a “using xx” in the Codefile. The VS2012 can find the namespace, but the intellicense cannot pickup the class or functions in my C# project. So I was wondering if it`s doable or not.
Yes, You can add as many files as you want in the App_Code folder. This folder is for that purpose only. And about Intelligence, try compiling your project and may be from the next run, It may add in the intelligence, Since Intelligence take some time to load all functions and stuffs.