sqlhelper调用问题
我需要在aspx.cs中引用sqlhelper需要怎么么处理啊
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using _123;
namespace _123
{
public class SqlHelper
{
private String connectionString = "Server=.;database=c;uid=sa;pwd=123";
public SqlDataReader ExecuteReader(String sql)
{
SqlConnection connection = new SqlConnection(connectionString);
connection.Open();
SqlCommand command = new SqlCommand(sql, connection);
SqlDataReader result = command.ExecuteReader();
return result;
}
public bool ExecuteCommand(String sql)
{
bool result = false;
try
{
SqlConnection connection = new SqlConnection(connectionString);
connection.Open();
SqlCommand command = new SqlCommand(sql, connection);
//command.Connection = connection;
// = sql;
command.ExecuteNonQuery();
connection.Close();
result = true;
}
catch (Exception e)
{
throw e;
}
return result;
}
}
}