Example #1
0
 protected void btnRegis_Click(object sender, EventArgs e)
 {
     try
     {
         ProviderOperations po = new ProviderOperations();
         string             j  = "";
         po.InsertProvider(txtName.Text, txtAgent.Text, txtTel.Text, txtEmail.Text, txtFolio.Text, ref j);
         Response.Redirect("Provider.aspx");
     }
     catch (Exception v)
     {
         Message(v.ToString());
     }
 }
Example #2
0
        public void Proveedores()
        {
            ProviderOperations po = new ProviderOperations();
            string             ca = "";

            misidsl = po.Proveedores(ref misnombresl, ref ca);

            dplProveedor.Items.Clear();
            foreach (string m in misnombresl)
            {
                dplProveedor.Items.Add(m);
            }
            dplProveedor.SelectedIndex = 0;
            Session["Proveedores"]     = misidsl;
        }