请大家帮我看看哪里错了,下面是代码
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
/// <summary>
/// DB 的摘要说明
/// </summary>
public class DB
{
public DB()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public static SqlConnection CerateCon()
{
return new SqlConnection("server=.;database=Reg;uid=sa;pwd=123456");
}
public static bool JudgeUser(string Name);
{
SqlConnection con=DB.CerateCon();
con Open();
SqlCommand cmd=new SqlCommand("select count(*) from Users where Name='"+Name+"'",con);
int Count=Convert.ToInt32(cmd.Executescalar());
if ( Count > 0)
{
con Close();
return false;
}
else
{
con Close();
return true;
}
}
}
这是提示的错误信息
请朋友帮我分析一下 我是大括号错了吗?
[此贴子已经被作者于2007-4-11 22:26:40编辑过]