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.cs 35 14 C:\...\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.cs 71 29 C:\...\BulletinSys\
------解决方案--------------------不客气 结贴吧