dropdownlist binding

Outplace   {  Id; Name}

 

 

outDepot                                     OutPlace

-----------                                   ---------

Model class                                   Properity, this properity belongs to Model Class Place, which has Id and Name properities.

has properities, no methods

 

 

 

outDepot.OutPlace = placeManager.GetPlaceById(Convert.ToInt32(this.dropdownlist.SelectedValue));
outDepotManager.InsertOutDepot(outDepot)

posted @ 2010-05-13 23:08  greencolor  阅读(152)  评论(0编辑  收藏  举报