Copied to clipboard

Flag this post as spam?

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


  • Richard Kingston 46 posts 69 karma points
    Feb 17, 2011 @ 17:33
    Richard Kingston
    0

    UserControl ReadOnly text field

    Hi,

    I've created a new user control which is nothing more than a TextBox control and imported it into Umbraco 4.6.1 as a new Data Type. I've embedded it in a DocumentType as a field and all is well.

    The control saves my text inputs and I have no problems, until I mark the field with a ReadOnly="true" attribute in the HTML and reimport it. In the codebehind, on Page_Load I ask that if it's not a Postback, then set the value to false so that I can enter data. If it is Postback, leave it alone, so I can't change the value.

    Unfortunately, the value is now no longer saving.

    Can anyone suggest why?

    Thanks

    Rich

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 19, 2011 @ 21:37
    Jan Skovgaard
    0

    Hi Rich

    Could you perhaps share your code with us? Then it will be much easier to help you out I guess since this could perhaps be happening due to a wrong syntax or that you're maybe testing in the wrong place or something like that.

    Once we can see the code it's much easier to give you some suggestions - otherwise we're just guessing :-)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft