protected void BtnCreateOnClick(object sender, EventArgs e) { string nombre = this.txtFullName.Text; string identificacion = this.txtIdentification.Text; string telephone = this.txtTelephone.Text; string address = this.txtAddress.Text; if (string.IsNullOrEmpty(nombre) || string.IsNullOrEmpty(identificacion) || string.IsNullOrEmpty(telephone) || string.IsNullOrEmpty(address)) { this.Alert("Verifique los campos", "Alerta"); return; } EDriver eDriver = new EDriver { Full_name = nombre, Identification_driver = identificacion, Telephone = telephone, Address = address }; string rpta = EDriver.InsertarDriver(eDriver); if (rpta.Equals("OK")) { this.Alert("Driver inserted successfull", "Correct"); //GridView1.DataSource = metodos.mostrar_datos(); //GridView1.DataBind(); } else { this.Alert("Error: details: " + rpta, "Error"); } }
public WebDriverHelper(EDriver DriverType = EDriver.PhantomJS, PhantomJSDriverService PhantomJSDriverService = null) { this.DriverType = DriverType; this.PhantomJSDriverService = PhantomJSDriverService; InitDriver(); }