DropDownList 設定

    #region Methods
    /// <summary>
    /// SetDropDownLis
    /// </summary>  
    protected void SetDropDownList()
    {

        string[] DropDownListItem = { "DEPTNO", "DEPTNAME", "IDNO", "EMPLOYEENAME" };
        int[] DropDownListValue = { 1, 2, 3, 4 };
        for (int i = 0; i <= DropDownListItem.Length - 1; i++)
        {
            ListItem InsertItem = new ListItem(DropDownListItem[ i ].ToString(), DropDownListValue[ i ].ToString());
            ddlITEM1.Items.Add(InsertItem);
        }
    }

#endregion 

JD40715.6494444444