Jump to content

Server Controls


renafi

Recommended Posts

Ao criar um server control, como é que faço para tornar o manuseamento dos controlos disponível numa página que use o server control?

Basicamente, a minha dúvida é, que ao usar um user control, normalmente crio propriedades com os controlos, para que estejam disponíveis na página que vai usar o user control. Como faço isso, mas com server controls?

Oracle Certified Professional - AdministraçãoOracle Certified Professional - Pl/sqlMCPD - Microsoft Certified Professional DeveloperMCTS - Microsoft Certified Technology Specialist

Link to comment
Share on other sites

Não sei se percebi a tua duvida, mas as propriedades num server control são assim:

        [bindable(true)]
        [Category("Appearance")]
        [DefaultValue(true)]
        [Localizable(true)]
        public bool Campo
        {
            get { return ViewState["Campo"] == null ? true : (bool)ViewState["Campo"]; }
            set { ViewState["Campo"] = value; }
        }

Matraquilhos para Android.

Gratuito na Play Store.

https://play.google.com/store/apps/details?id=pt.bca.matraquilhos

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.