C# 및 ASP.Net 웹 폼을 사용하여 Visual Studio 2010에서 사이트를 만들고 있습니다. 우리는 왜 그것의 부러 졌는지 잘못 알고 온라인 튜토리얼을 따라 갔다가 다른 문제를 고친 후에 코드에이 오류가 발생했습니다. 그 문제를 해결하는 방법이나 다른 사람들이 문제를 볼 수 있다면 무엇을했는지 알지 못합니다. 나도 알아.사용자 코드에 의해 처리되지 않은 NotImplementedException
using System;
using System.Collections;
using System.Configuration;
using System.Data.SqlClient;
public class ConnectionClass
{
private SqlConnection conn;
private SqlCommand command;
ConnectionClass()
{
string connectionString = ConfigurationManager.ConnectionStrings["Connection"].ToString();
conn = new SqlConnection(connectionString);
command = new SqlCommand("", conn);
}
private ArrayList GetClothesByType(string ClothesType)
{
ArrayList list = new ArrayList();
string query = string.Format("SELECT * FROM fusey WHERE type LIKE '{0}'", ClothesType);
try
{
conn.Open();
command.CommandText = query;
SqlDataReader reader = command.ExecuteReader();
while (reader.Read())
{
int id = reader.GetInt32(0);
string name = reader.GetString(1);
string type = reader.GetString(2);
double price = reader.GetDouble(3);
string size = reader.GetString(4);
string image = reader.GetString(5);
string review = reader.GetString(6);
Fusey fusey = new Fusey(id, name, type, price, size, image, review);
list.Add(fusey);
}
}
finally
{
conn.Close();
}
return list;
}
internal static ArrayList GetClothesByType(object ClothesType)
{
throw new NotImplementedException();
}
}
은'당신'GetClothesByType' 방법에 ... 거기에 코드를 넣으십시오. – Tim
http://www.catb.org/esr/faqs/smart-questions.html#urgent –