Copied to clipboard

Flag this post as spam?

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


  • Harald Ulriksen 207 posts 248 karma points
    Jan 13, 2010 @ 19:37
    Harald Ulriksen
    0

    Custom fieldtype with hidden input

    The asp.net hiddenfield does not implement webcontrol, but control, so it's not possible to create a fieldtype with it. I've tried putting it in a panel, but the panel is not properly rendered by contour as it seems to remove the div.

    Currently I'm using input with css styling to hide it, but I would like to use a proper input type hidden. Any suggestions?

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jan 14, 2010 @ 06:04
    Richard Soeteman
    0

    Hi,

    Sometimes I think the asp.net teams in Redmond don't talk to each other. I also don't know Contour well enough, but if it's depended on a the webcontrol base class I would create a custom asp.net control and implement the hidden input field in that control. Just a few lines of .net code...

    Cheers,

    Richard

  • Harald Ulriksen 207 posts 248 karma points
    Jan 14, 2010 @ 13:08
    Harald Ulriksen
    0

    Excellent, so busy building my own fieldtype that I didn't think of rolling my own webcontrol. Thanks.

  • Jason Prothero 416 posts 1226 karma points c-trib
    May 20, 2010 @ 22:38
    Jason Prothero
    1

    Any chance you could add your hidden field custom fieldtype as a package?

     

     

  • 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.

Please Sign in or register to post replies