Simple |
Docs
A database driven drop-down list can be created very easily. Simply pass the connection alias, table name,value and text column names to the constructor. |
Razor
DbNetComboCore customersCombo = new DbNetComboCore("northwind", "customers", "customerid", "companyname", "customerCombo");
customersCombo.Bind(EventType.OnOptionSelected, "showSelectedCustomer");
@customersCombo.Render()