Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Do anybody have any example on how to use a dropdown datatype in a custom page?
I thinki it will be better to use it instead of creating a new table and having a sql dropdown.
I think you need to be clearer about what you are trying to do as I don't understand what you are asking.
I created a custom page in umbraco back office for our comparison module. In this custom page instead of using a free textbox or a sql source dropdown, I want to use the dropdown datatype.
I have this code in OnInit
DataTypeDefinition dType = DataTypeDefinition
.GetDataTypeDefinition(7531);
_dropDownMultiple =
newdropdownMultiple
(_data, _prevalues);
ph.Controls.Add(_dropDownMultiple);
But when I try to save it and check the page it is giving me an error of "Object reference not set to an instance of an object".
What am I doing wrong?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
use dropdown datatype in the custom page
Hi,
Do anybody have any example on how to use a dropdown datatype in a custom page?
I thinki it will be better to use it instead of creating a new table and having a sql dropdown.
I think you need to be clearer about what you are trying to do as I don't understand what you are asking.
I created a custom page in umbraco back office for our comparison module. In this custom page instead of using a free textbox or a sql source dropdown, I want to use the dropdown datatype.
I have this code in OnInit
DataTypeDefinition dType = DataTypeDefinition
.GetDataTypeDefinition(7531);
_dropDownMultiple =
newdropdownMultiple
(_data, _prevalues);
ph.Controls.Add(_dropDownMultiple);
But when I try to save it and check the page it is giving me an error of "Object reference not set to an instance of an object".
What am I doing wrong?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.