protected void btnGuardar_Click(object sender, EventArgs e) { object obj2 = null; if (obj2 == null) { Transaccion.InsertaConservador(this.txtNombre.Text.ToString(), this.comuna.SelectedValue.ToString(), this.txtCalle.Text.ToString(), this.txtRut.Text.ToString(), this.Session["Usuario"].ToString(), this.txtCargo.Text.ToString()); this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('Datos guardados correctamente');</script>"); this.CargaGrilla(this.comuna.SelectedValue.ToString()); this.txtNombre.Text = ""; this.txtRut.Text = ""; this.txtCalle.Text = ""; this.txtCargo.Text = ""; } }