private void clear()
    {
        txtClubName.Text    = "";
        txtClubNo.Text      = "";
        txtmob2cc.Text      = "";
        txtmobcc.Text       = "";
        txtNoOfMembers.Text = "";
        txtPBlackberry.Text = "";
        txtpemail.Text      = "";
        txtPemail2.Text     = "";
        txtPFName.Text      = "";
        txtPLName.Text      = "";
        txtPMName.Text      = "";
        txtPmob1.Text       = "";
        txtPMob2.Text       = "";
        txtRPhAC1.Text      = "";
        txtRPhCC1.Text      = "";
        txtRPhone.Text      = "";
        txtSBlackberry.Text = "";
        txtSEmail1.Text     = "";
        txtSEmail2.Text     = "";
        txtSFName.Text      = "";
        txtSLName.Text      = "";
        txtSMName.Text      = "";
        txtSMob1.Text       = "";
        txtSMob2.Text       = "";
        txtSPhone.Text      = "";
        txtSmob1cc.Text     = "";
        txtSmob2cc.Text     = "";
        txtSRPhCC1.Text     = "";
        txtSRPhAC1.Text     = "";

        DDLDays.ClearSelection();
        DDLMonth.ClearSelection();
        DDLpbDay.ClearSelection();
        DDLpbMonth.ClearSelection();
        DDLpbYear.ClearSelection();
        DDLsbDay.ClearSelection();
        DDLsbMonth.ClearSelection();
        DDLsbYear.ClearSelection();
        DDLSponser.ClearSelection();
        DDLYear.ClearSelection();
    }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Meta.NodeCode = "104004";
            sx            = Request.QueryString["sx"];
            DateTime tnow = DateTime.Now;//现在时间

            Response.Write(tnow);
            ArrayList AlYear = new ArrayList();

            AlYear.Add("Year");
            int i;

            for (i = 2015; i <= int.Parse(tnow.Date.Year.ToString()); i++)
            {
                AlYear.Add(i);
            }
            ArrayList AlMonth = new ArrayList();

            AlMonth.Add("Month");
            for (i = 1; i <= 12; i++)
            {
                AlMonth.Add(i);
            }

            if (!this.IsPostBack)
            {
                DDlYear.DataSource = AlYear;
                DDlYear.DataBind();//绑定年
                //选择当前年
                //  DDlYear.SelectedValue = tnow.Year.ToString();
                DDlYear.SelectedValue = "Year";
                DDLMonth.DataSource   = AlMonth;
                DDLMonth.DataBind();//绑定月
                //选择当前月
                //   DDLMonth.SelectedValue = tnow.Month.ToString();
                DDLMonth.SelectedValue = "Month";
                BindData();
                BindActivityTop();
                BindActivity();
            }
        }
    private void Clear()
    {
        txtAvgAttendance.Text     = "";
        txtCancelledMtngRes1.Text = "";
        txtCancelledMtngRes2.Text = "";
        txtMeetingCancelled.Text  = "";
        txtMeetingHeld.Text       = "";
        txtMemStrength.Text       = "";

        DDLClubName.SelectedIndex = 0;
        DDLMonth.ClearSelection();

        dateCancelledMtng1.Clear();
        dateCancelledMtng2.Clear();

        lblAG.Text         = "";
        lblDS.Text         = "";
        lblGC.Text         = "";
        lblPresiEmail.Text = "";
        lblPresiName.Text  = "";
        lblSecEmail.Text   = "";
        lblSecName.Text    = "";
    }
Exemple #4
0
    /// <summary>
    /// Initialize the drop down controls.
    /// </summary>
    public void Initialize()
    {
        DBAccess MonthYear = new DBAccess();

        MonthYear.CommandText = "dbo.MonthYear";
        DataSet DDLData = MonthYear.ExecuteDataSet();

        //Bind DDLMonth
        DDLMonth.DataSource     = DDLData;
        DDLMonth.DataMember     = DDLData.Tables[0].TableName;
        DDLMonth.DataValueField = "ID";
        DDLMonth.DataTextField  = "Month";
        DDLMonth.DataBind();
        //Bind DDLYear
        DDLYear.DataSource     = DDLData;
        DDLYear.DataMember     = DDLData.Tables[1].TableName;
        DDLYear.DataValueField = "Year";
        DDLYear.DataTextField  = "Year";
        DDLYear.DataBind();

        PlaceHolder1.Controls.Clear();
        Panel1.Visible = true;
        Panel2.Visible = false;
    }