Exemplo n.º 1
0
        protected void gvMain_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            try
            {
                if (e.CommandName.Equals("Ver"))
                {
                    if (e.CommandArgument != null)
                    {
                        string[] data               = e.CommandArgument.ToString().Split(';');
                        var      codigoProyecto     = Convert.ToInt32(data[0]);
                        var      codigoConvocatoria = Convert.ToInt32(data[1]);

                        HttpContext.Current.Session["CodProyecto"]     = codigoProyecto;
                        HttpContext.Current.Session["CodConvocatoria"] = codigoConvocatoria;

                        FieldValidate.Redirect(null, "~/FONADE/evaluacion/EvaluacionFrameSet.aspx", "_blank", "menubar=0,scrollbars=1,width=1000,height=600,top=50");
                    }
                }
                else if (e.CommandName.Equals("VerProyecto"))
                {
                    HttpContext.Current.Session["CodProyecto"] = e.CommandArgument;
                    FieldValidate.Redirect(null, "~/FONADE/Proyecto/ProyectoFrameSet.aspx", "_blank", "menubar=0,scrollbars=1,width=1000,height=600,top=50");
                }
            }
            catch (Exception ex)
            {
                lblError.Visible = true;
                lblError.Text    = "Sucedio un error detalle :" + ex.Message;
            }
        }