protected void btnRegis_Click(object sender, EventArgs e) { try { MaterialsOperations mo = new MaterialsOperations(); string j = ""; mo.InsertCate(txtCateg.Text, ref j); Response.Redirect("Materials.aspx"); } catch (Exception v) { Message(v.ToString()); } }
protected void btnNewMat_Click(object sender, EventArgs e) { try { MaterialsOperations mo = new MaterialsOperations(); string j = ""; mo.InsertMaterial(txtFolio.Text, txtMaterial.Text, misids[dplCategoria.SelectedIndex], misidsl[dplProveedor.SelectedIndex], ref j); Response.Redirect("Materials.aspx"); } catch (Exception v) { Message(v.ToString()); } }
public void Categorias() { MaterialsOperations mo = new MaterialsOperations(); string ca = ""; misids = mo.Categorias(ref misnombres, ref ca); dplCategoria.Items.Clear(); foreach (string m in misnombres) { dplCategoria.Items.Add(m); } dplCategoria.SelectedIndex = 0; Session["Categorias"] = misids; }