Changes between Version 2 and Version 3 of Resources
- Timestamp:
- 03/08/07 13:41:23 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Resources
v2 v3 1 = 1 0. Resources =2 == 1 0.1 Using resources ==1 = 11. Resources = 2 == 11.1 Using resources == 3 3 Using .NET resource files is very easy with SASP, the system is copied from [http://www.castleproject.org Castle MonoRail]. You specify the resource files you want to use inside a control by using attributes. A ResourceAttribute consists of a Bag name and a resource file specification. The actual resource file is then loaded and put in the Bag between the PreInitialize and Initialize method of the control. 4 4 … … 21 21 22 22 '''__Example__''': See demo site 'Text Resources' 23 == 1 0.2 Resource inheritance ==23 == 11.2 Resource inheritance == 24 24 Specified resources are inherited from parent controls. It is also possible to specify multiple resource attributes per class. If you specify a resource in a child class with a Bag key that was already set in a parent class, the new - child - specification will still take priority. This way it is possible to override resources in child controls. 25 25
