Is it possible to pull data from a non Kentico Database?

Duncan Koza asked on October 17, 2019 20:57

I have added a Drop-Down list Form Control to one of my page types in the field editor of Kentico 11.

In the section where it asks me to create a Data Source, can I pull some data from a database outside of Kentico?

Thanks you.

Correct Answer

Rui Wang answered on October 17, 2019 22:47

You won't be able to do it with the built-in one because it will only execute query against the database the system is connected to defined in the web.config file.

Your best option is to create a custom form control which you can make the external database call to get Example - Developing custom form controls

1 votesVote for this answer Unmark Correct answer

Recent Answers


Peter Mogilnitski answered on October 18, 2019 04:12

Well you need to combine to 2 existing controls: Connection string selector (shows list from your connection string section of your web.config) and Drop-down list.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.