Copied to clipboard

Flag this post as spam?

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


  • Rene 6 posts 26 karma points
    Jun 15, 2013 @ 14:37
    Rene
    0

    Hidden field / password field

    I have tried to make a custom data type  ( <input type="password" />  ), I´m using the usercontrol wrapper. The value get stored and i can retrieve it in my template. But in umbraco backend, i can´t see that the field contains any data, there are no dots / star like this

    I have tried debugging in vs2012, to verify that the data gets saved and retrived.

    My code:

    namespace WebApplication1
    {
        public partial class maskedField : System.Web.UI.UserControl,
            umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor
        {
            protected void Page_Load(object sender, EventArgs e)
            {

            }

            public object value
            {
                get { return TextBox1.Value; }

              
                set
                {
                    if(value != null && !String.IsNullOrEmpty(value.ToString()))
                    TextBox1.Value = value.ToString();
                }
            }
        }
    }

  • 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