2个新手题 望有人解决..
1.
public void getData(string str)
{
con = new SqlConnection(ConfigurationManager.AppSettings[ "strCon "]); //调用配置文件中的字符串
com = new SqlCommand();
com.Connection = con;
com.CommandText = str;
com.CommandType = CommandType.StoredProcedure;
}
报错:错误1“Data”并不包含“getdata”的定义C:\Documents and Settings\xp\My Documents\Visual Studio 2005\WebSites\BulletinSys\App_Code\Data.cs3514C:\...\BulletinSys\
2.
SqlParameter pare = ParameterDirection.ReturnValue;
报错:错误9无法将类型“System.Data.ParameterDirection”隐式转换为“System.Data.SqlClient.SqlParameter”C:\Documents and Settings\xp\My Documents\Visual Studio 2005\WebSites\BulletinSys\App_Code\Data.cs7129C:\...\BulletinSys\
[解决办法]
不客气 结贴吧