private void button1_Click(object sender, EventArgs e) { MessageBox.Show("11111"); OraDB DB = new OraDB(); MessageBox.Show("22222"); DB.Connect(); MessageBox.Show("3333"); List <String> data = null; string sql = "select * from tab"; MessageBox.Show(sql); data = DB.GetQueryResults <string>(sql, delegate(OracleDataReader reader) { MessageBox.Show("---------"); string val = reader[0].ToString(); MessageBox.Show(val); System.Diagnostics.Debug.WriteLine(val); return(val); }); MessageBox.Show("--2222-------"); System.Diagnostics.Debug.WriteLine(data); MessageBox.Show("--3333-------"); clsClassfication cls = new clsClassfication(); MessageBox.Show("--4442-------"); cls.load("1"); cls.CATE_NAME = "AAAAAAAAAAAA"; MessageBox.Show("--5552-------"); cls.update("2222"); List <clsClassfication> lst = clsClassfication.getList("11", "", false); //cls.insert("22", "2"); MessageBox.Show("--2666-------"); }
public void Proc_ClsMod() { string obj_id = Request.Params["OBJECT_ID"]; string title = Request.Params["CATE_NAME"]; string id = ""; object _id = Session["USERID"]; if (_id != null) { id = _id.ToString(); } clsClassfication cls = new clsClassfication(); cls.load(obj_id); cls.CATE_NAME = title; cls.update(id); Response.Clear(); string res = "{ 'RESULT' : 'true' }"; Response.Write(res); }