简体   繁体   中英

Using .dll file in asp.net application

I'm working on asp.net (web application). I have to use time picker control in my page. Hence i downloaded 'time picker.dll' file from some website. I need to integrate this 'dll' file into my project. can anyone pls guide me in the same?

You would add it as a reference in the project. Right click on VS and add reference and browse to it.

In your file include a using statement for the namespace of the DLL and then you should be able to instantiate a new object.

"time picker.dll"复制到您的Web应用程序的Bin文件夹中,然后将<%@Register %>指令添加到您的网页中以使用该控件。

Assuming dll package the typical ASP.NET server control, you have to add reference to the dll (VS Studio Project -> References -> Right-Click & Add Reference, Browse the dll file).

Next thing to do is to add the control on tool box by right clicking on the toolbox and selecting the control. Now you can drag the control on the ASP.NET Design surface. Alternatively, you can use the object browser to check the control name and use the register directive .

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