示例#1
0
 protected virtual void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ProLabel lblTitulo = (ProLabel)Page.Form.FindControl("cphPadrao").FindControl("lblTitulo");
         lblTitulo.Text = this.TituloPagina;
     }
 }
示例#2
0
 protected override void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ProLabel lblTitulo = (ProLabel)Page.Form.FindControl("cphPadrao").FindControl("lblTitulo");
         if (lblTitulo != null)
         {
             lblTitulo.Text = this.TituloPagina;
         }
     }
 }
示例#3
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    ProGridView grdListagem = (ProGridView)this.LocalizarControle("grdListagem", this.Controls);
                    ProLabel    lblTitulo   = (ProLabel)this.LocalizarControle("lblTitulo", this.Controls);

                    lblTitulo.Text = this.TituloPagina + ": Consulta";
                    grdListagem.SortColumnStyle = grdListagem.HeaderStyle;
                    PopularGridView();
                }
            }
            catch (Exception ex)
            {
                ExibirExcecao(ex);
            }
        }
示例#4
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Pro.Controls.ProRadioButtonList rblFormatoExportacao = (Pro.Controls.ProRadioButtonList)Page.Form.FindControl("cphPadrao").FindControl("rblFormatoExportacao");
                ProLabel lblTitulo = (ProLabel)Page.Form.FindControl("cphPadrao").FindControl("lblTitulo");
                if (lblTitulo != null)
                {
                    lblTitulo.Text = this.TituloPagina;
                }

                if (rblFormatoExportacao != null)
                {
                    rblFormatoExportacao.DataSource = TiposExportacao;
                    rblFormatoExportacao.DataBind();
                    rblFormatoExportacao.SelectedIndex = 1;
                }
            }
        }
示例#5
0
        protected virtual void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    ProLabel lblTitulo = (ProLabel)Page.Form.FindControl("cphPadrao").FindControl("lblTitulo");
                    if (lblTitulo != null)
                    {
                        lblTitulo.Text = this.TituloPagina;
                    }

                    //if (this.Seguranca)
                    //{
                    //    if ((Contexto.Seguranca == null) || (!Contexto.Seguranca.Ler(Page.GetType().BaseType.Name)))
                    //        Response.Redirect("AcessoNegado.aspx");
                    //}
                }
                catch { }
            }
        }