Use managed components in ASP. NET
I wrote a DLL using C # a few days ago. Today I suddenly thought about a problem. Can I call this DLL in ASP. NET. I have never played ASP. NET before !! Hoho), and I tried it out!
Because I have been studying ASP. NET over the past few days, I downloaded several ASP. NET BBS and otherProgramLet's look at their structure. An interesting thing is that every ASP. Net Program has a bin folder, which must be placed in the root folder of the site !!!!!
Today I wrote a small ASP. NET program. I want to use an ASP. NET web page to Call DLL, and use the string in DLL to process the function and output the result. Haha. First, I put the DLL in the same level of folder as the ASP. NET page and use
<% @ Import namespace = "include" %>
After the namespace is introducedCodeI called this DLL but told me that I couldn't find the namespace. Haha, I don't know why. I suddenly thought of the bin folder I saw earlier, take care of it. Try it and you will not die. I put the DLL in the bin folder and run it on the page ---- hey, thank you ............ Haha, it's a success. It turns out that the managed code component to be called must be placed in the bin folder. Hoho .......