コード例 #1
0
        protected void btnGuardar_Click(object sender, EventArgs e)
        {
            string str2;
            string str = this.HiddConsulta.Value.ToString();

            Transaccion.InsertaActividadPrejudicial(this.hiddidCobranza.Value.ToString(), this.tramite.SelectedValue.ToString(), this.txtFechatramite.Text, this.proxima.SelectedValue.ToString(), this.txtFechaproxgestion.Text, this.observacion.Text);
            if (this.HiddConsulta.Value.ToString() == "Consulta")
            {
                str2 = "ActividadesPrejudiciales.aspx?Volver=" + str + "&Codigo=" + this.hiddidCobranza.Value.ToString();
                this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('Operaci\x00f3n realizada correctamente');location.href='" + str2.ToString() + "';</script>");
            }
            else
            {
                str2 = "ActividadesPrejudiciales.aspx?Codigo=" + this.hiddidCobranza.Value.ToString();
                this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('Operaci\x00f3n realizada correctamente');location.href='" + str2.ToString() + "';</script>");
            }
        }