How to add the New DLL(user created) File in our application


In this session we can discuss about the how to add the user created DLL from your application, We already discuss the how to convert the class (.cs) to DLL, after create the DLL you have a problem how to add your DLL in to the required application, Its very simple…………..

How to make the class(.cs) to DLL

First you have to add the DLL in your application

Clik  website->Add reference->choose browse tab(you can access the path where you save the DLL)

That it you will add your DLL in your application… next we have to discuss how to access the DLL method in your app..

First add the namespace of the DLL using classdll;

Second declare the DLL class inside or outside the page load

Class1 callcls=new Class1();

Third using the class object call the method..

Long var=callcls.Add(12);//Add will be one of the method will used in your DLL

Response.Write(value);

Ok that fine now you can create the DLL file and Add the DLL into your application then access the DLL method also, I hope you will enjoy this session…..