DropdownList Control with Data Binded

HOW TO:

Populate dropdownlist control with data binded

Default.aspx
 <asp:DropDownList ID="oCtrl" runat="server"></asp:DropDownList>
Default.aspx.cs (Code behind)
//- Please select One per control

//- United States
ncTools.UnitedStates.Listing(oCtrl); 

//- Countries 
ncTools.Countries.Listing(oCtrl); 

//- Credit Cards 
ncTools.CreditCards.Listing(oCtrl); 

//- Preferred Language
ncTools.PreferredLanguage.Listing(oCtrl); 

//- Personal Relation 
ncTools.PersonalRelation.Listing(oCtrl); 

//- Referrals 
ncTools.Referral.Listing(oCtrl); 

//- Race 
ncTools.Race.Listing(oCtrl); 

//- Vehicles 
ncTools.VehicleMake.Listing(oCtrl); 

//- Calendar Month 
ncTools.MyCalendar.PeriodListing(oCtrl, ncTools.eCalendarType.Month); 

//- Calendar Year 
ncTools.MyCalendar.PeriodListing(oCtrl, ncTools.eCalendarType.Year); 

//- Marital Status
ncTools.MaritalStatus.Listing(oCtrl); 

//- Education
ncTools.Educational.Listing(oCtrl);



Add Feedback