Exemplo n.º 1
0
 protected void btnNewSelect_Click(object sender, EventArgs e)
 {
     if (!panSelect0.Visible)
     {
         ddlfield.Items.Clear();
         closeSelect();
         labHeaderName.Text = "查询数据";
         //strs_sys = new ListItemCollection();
         //strs_sys.Add("请选择");
         getSconn();
         _bll = new ToolBll(Session["sConn"].ToString());
         panSelect0.Visible = true;
         foreach (DataRow row in _bll.getDatatablefield(getAbsoluteTableName(hidSchemasName.Value, hidTablesName.Value)).Tables["field"].Rows)
         {
             ddlfield.Items.Add(new ListItem(row[0].ToString(), "[" + row[0].ToString() + "]"));
         }
     }
 }
Exemplo n.º 2
0
 protected void btnUpdate_Click(object sender, EventArgs e)
 {
     if (!panUpdate.Visible)
     {
         closeSelect();
         ddlUpdateFiled.Items.Clear();
         labHeaderName.Text = "修改&删除数据";
         panUpdate.Visible  = true;
         getSconn();
         _bll = new ToolBll(Session["sConn"].ToString());
         //绑定列名列表
         //strs_sys = new ListItemCollection();
         foreach (DataRow row in _bll.getDatatablefield(getAbsoluteTableName(hidSchemasName.Value, hidTablesName.Value)).Tables["field"].Rows)
         {
             //Changed on 2015.06.04
             ddlUpdateFiled.Items.Add(new ListItem(row[0].ToString(), "[" + row[0].ToString() + "]"));
         }
     }
 }