【Vegas原创】DropdownList经典用法~~~

         //初始化job_Rank         
            string strSql = "select * from code_list where pms_type='job_rank'";
            DataSet dsJobrank 
= DBAccess.GetDataSet(strSql);
            drpJobRank.DataSource 
= dsJobrank.Tables[0].DefaultView;
            drpJobRank.DataTextField 
= "pms_name";
            drpJobRank.DataValueField 
= "pms_value";
            drpJobRank.DataBind();
            drpJobRank.Items.Insert(
0new ListItem(" ""-1"));

 

posted @ 2007-10-11 16:59  李济宏(Amadeus)  阅读(77)  评论(0编辑  收藏  举报