Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lblOrganizationAction.Text         = "View Organizations";
                pnlViewOrganizations.Visible       = true;
                pnlAddOrganization.Visible         = false;
                pnlEditOrganizationProfile.Visible = false;
                pnlViewOrganizationProfile.Visible = false;
                pnlOrganizationBankDetails.Visible = false;

                string strCmd = string.Format("SELECT TOP 100 * FROM EduSphere.Organizations WHERE OrganizationId>={0} ORDER BY OrganizationId DESC", 104);
                BD.DataBindToDataList(dlOrganizations, strCmd);
                //Display Count for Principle,Customer & Vendor
                lblCountCustomers.Text     = (MT.Count("spEduCentreCount")).ToString();
                lblCountCustomersHelp.Text = lblCountCustomers.Text;

                lblCountVendors.Text     = (MT.Count("spVendorsCount")).ToString();
                lblCountVendorsHelp.Text = lblCountCustomers.Text;
            }
        }