protected virtual void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ProLabel lblTitulo = (ProLabel)Page.Form.FindControl("cphPadrao").FindControl("lblTitulo"); lblTitulo.Text = this.TituloPagina; } }
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; } } }
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); } }
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; } } }
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 { } } }