views:

77

answers:

1

I have made a basic ascx control which is just a panel with a couple controls. My question is how can I create custom properties I could set for my custom control? (I mean such as custom properties like runat, CssClass, etc...) I would also like to be able to create methods for my ascx that I could call. I tried putting public static methods in the asc code behind file, but that's not working.

Any help is appreciated.

+1  A: 

The attributes you can add to your user control are simply properties in your code-behind. See Microsoft's crash course on building custom user controls.

Cory Larson