卡布基米
新建一个
>>
完整版
Hashtable ht = new Hashtable(); //新建一个 Hashtable 对象
ht.Add("attachFilename", SQLString.GetQuotedString(oldname));
ht.Add("attachName", SQLString.GetQuotedString(filename));
ht.Add("docID", SQLString.GetQuotedString(Convert.ToString(docID))); //像该对象传值
Attach attach = new Attach();
attach.Add(ht); //将ht中的数据传给局部变量 attach
上面的最后一行报出的错误 “在 System.Data.SqlClient.SqlException 中第一次偶然出现的“System.Data.dll”
请问如何解决这个错误啊,还是语法有问题?
哈希表已经获得了页面传来的数据,然后我要把哈希表里的数据再传给数据库里的表,如何实现?