Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sherry Ann Hernandez 320 posts 344 karma points
    Aug 04, 2011 @ 12:39
    Sherry Ann Hernandez
    0

    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.

  • Bex 444 posts 555 karma points
    Aug 04, 2011 @ 17:01
    Bex
    0

    I think you need to be clearer about what you are trying to do as I don't understand what you are asking.

  • Sherry Ann Hernandez 320 posts 344 karma points
    Aug 06, 2011 @ 08:29
    Sherry Ann Hernandez
    0

    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.

  • Sherry Ann Hernandez 320 posts 344 karma points
    Aug 06, 2011 @ 12:40
    Sherry Ann Hernandez
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft