Example #1
0
 protected void ddl_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         DataSet ds = EmpresasDB.EmpresaUsuarioPerfil(Convert.ToInt32(ddl.SelectedValue));
         rptCard.DataSource = ds;
         rptCard.DataBind();
     }
     catch (Exception)
     {
         throw;
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         DataSet ds = EmpresasDB.EmpresaUsuarioPerfil(1);
         rpt.DataSource = ds;
         rpt.DataBind();
     }
     catch (Exception)
     {
         throw;
     }
 }