I’m working on a new data type for an Umbraco site and have been building a custom control to accommodate this. I need to query the active data source for the document types. It’s going to return several and I want to populate a DropDownBox with those items. I’ve got the query and drop down ready to go, but I’m a having trouble with the connection to the DB to execute the query. Since it’s in a custom control the datasource is not built into the control itself but in Umbraco. Any help on this would be greatly appreciated!!
Share
If anyone is interested, I was able to solve this using the following. Include a method for ISqlHelper:
Using the ISqlHelper, I was able to run a query and populate the drop-down:
Hope that helps someone else too!