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?
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...
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?
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
Excellent, so busy building my own fieldtype that I didn't think of rolling my own webcontrol. Thanks.
Any chance you could add your hidden field custom fieldtype as a package?
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.