private void InitDDL() { this.ddlTITLECOLOR.DataSource = RentalHouse.GetSTONETYPE("ST_PROTYPE"); this.ddlTITLECOLOR.DataTextField = "VVALUE"; this.ddlTITLECOLOR.DataValueField = "CODE"; this.ddlTITLECOLOR.DataBind(); }
private void DdlDataBind() { this.TxtCARCOLOR.DataSource = RentalHouse.GetSTONETYPE("ST_PROTYPE"); this.TxtCARCOLOR.DataTextField = "VVALUE"; this.TxtCARCOLOR.DataValueField = "CODE"; this.TxtCARCOLOR.DataBind(); this.TxtCARCOLOR.Items.Insert(0, new ListItem("全部", "null")); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //产品类型 this.ddlTITLECOLOR.DataSource = RentalHouse.GetSTONETYPE("ST_PROTYPE"); this.ddlTITLECOLOR.DataTextField = "VVALUE"; this.ddlTITLECOLOR.DataValueField = "CODE"; this.ddlTITLECOLOR.DataBind(); lbReqId.Value = UtFunction.GetInnerSnByType("SZ"); } }