Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         GridServicos.DataSource = SrvDAL.Listar();
         GridServicos.DataBind();
     }
 }
        protected void btnBuscaServico_Click(object sender, EventArgs e)
        {
            DtServicos = ServDal.Listar();
            GVServicosOS.DataSource = DtServicos;
            GVServicosOS.DataBind();

            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append(@"<script type='text/javascript'>");
            sb.Append("$('#ServicosModal').modal('show');");
            sb.Append(@"</script>");

            ScriptManager.RegisterStartupScript(this, GetType(), "ServicosScript", sb.ToString(), false);
        }
Esempio n. 3
0
        public void ListarGrid()
        {
            ServicosDAL s = new ServicosDAL();

            //POPULAR O GRID
            gridServicos.DataSource = s.Listar();
            //EXIBIR O CONTEUDO DA GRID
            gridServicos.DataBind();
        }