jsDataSet數(shù)據(jù)源處理代碼_javascript技巧
來源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-27 20:48:17
jsDataSet數(shù)據(jù)源處理代碼_javascript技巧
jsDataSet數(shù)據(jù)源處理代碼_javascript技巧:[Ajax.AjaxMethod()] public DataSet GetDataSet() { OleDbConnection conn = new OleDbConnection(Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:工作項(xiàng)目分析 estdb.mdb;Persist Security Info=True;); DataSet ds = new DataSet(); try { OleDbCommand cmd
導(dǎo)讀jsDataSet數(shù)據(jù)源處理代碼_javascript技巧:[Ajax.AjaxMethod()] public DataSet GetDataSet() { OleDbConnection conn = new OleDbConnection(Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:工作項(xiàng)目分析 estdb.mdb;Persist Security Info=True;); DataSet ds = new DataSet(); try { OleDbCommand cmd
[Ajax.AjaxMethod()]
public DataSet GetDataSet()
{
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:工作項(xiàng)目分析 estdb.mdb;Persist Security Info=True;");
DataSet ds = new DataSet();
try
{
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandText = "select * from t_name";
cmd.CommandType = CommandType.Text;
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
da.Fill(ds);
return ds;
}
catch
{
conn.Close();
throw;
}
}
[/code]
代碼如下:
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
jsDataSet數(shù)據(jù)源處理代碼_javascript技巧
jsDataSet數(shù)據(jù)源處理代碼_javascript技巧:[Ajax.AjaxMethod()] public DataSet GetDataSet() { OleDbConnection conn = new OleDbConnection(Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:工作項(xiàng)目分析 estdb.mdb;Persist Security Info=True;); DataSet ds = new DataSet(); try { OleDbCommand cmd