Monday, December 3, 2012

ConnectionClass.dll

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

Where to find 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