How to add dll in asp.net 2.0
-
Hi all, Could any one help me out. I have created a com dll in vc++ and willing to add reference in asp.net 2.0. Once I succeed but not able to add namespace as well as not able to access any methode. Its a spillting headache for me. Please help me out.... Thanks in advance.. Sapan Hi all go for this...
-
Hi all, Could any one help me out. I have created a com dll in vc++ and willing to add reference in asp.net 2.0. Once I succeed but not able to add namespace as well as not able to access any methode. Its a spillting headache for me. Please help me out.... Thanks in advance.. Sapan Hi all go for this...
Hi Sapan, Add the com dll by following method. 1) Right click on the project->select "Add Reference" 2) Click on COM Tab, browse the dll, then click OK button Inside the page_load event, Create the object of the class which is defined in the dll. If you have namespace in the COM Dll, then use like this . then access the method from the object created. Note:- 1) unless you defined the method in the class as static or shared you cannot access the method directly. 2) you cannot access the class method in the import or using statement 3) you must declared the class as public class 4) access the method of the object created is done only in the function and cannot be done in the declaration I think this will help you to solve the problem, if you couldn't, message me.