How to add enum properties to a ASP.NET Composite Control




        public enum CommandType
        {
            Text,
            StoredProcedure
        }
       
        [Category("Custom")]
        [DefaultValue(CommandType.Text)]
        [Localizable(true)]
        public CommandType OracleCommandType
        {
            get
            {
                object obj = ViewState["OracleCommandType"];
                return obj == null ? CommandType.Text : (CommandType)obj;
            }
            set
            {
                ViewState["OracleCommandType"] = value;
            }
        }


Comments

Popular posts from this blog

How to remove app from SharePoint 2013/2016

The model backing the context has changed since the database was created. Consider using Code First Migrations to update the database