Tuesday, December 4, 2012

create dll file


CREATE A New Project select ClassLibrary name it  ConnectionClass.cs

Code View 













Change the Class1 to your class name say "Connections" as shown below

Save and Build to create Dll file
------------------------------------------------------------------

add referance to ConnectionClass.dll

 ConnectionClass.Connections cs=new ConnectionClass.Connections();

Add connection String in web.config and always use  "conn"  for name


--------------------------------------------------------------------

ENJOY


Code View