First of all, wrap your logic inside a method. Because that's whart is needed to access the functionality in other classes.
Example-
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using System.Collections;
Using System.Configuration;
namespace TEST.DAL
{
public class AdminDAL
{
public static SqlConnection conn=new SqlConnection(ConfigurationManager"dbCon").ConnectionString));
public int ExecuteSPNonQuery()
{
SqlCommand cmd=new SqlCommand("sp_insert",conn);
.
Now, you should be able to access this method with the instance of the class.
Hope, it helps :)