Use managed components in ASP. NET

Source: Internet
Author: User
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 .......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.