Changes between Version 2 and Version 3 of Resources

Show
Ignore:
Timestamp:
03/08/07 13:41:23 (4 years ago)
Author:
arne (IP: 195.130.159.202)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Resources

    v2 v3  
    1 = 10. Resources = 
    2 == 10.1 Using resources == 
     1= 11. Resources = 
     2== 11.1 Using resources == 
    33Using .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. 
    44 
     
    2121 
    2222'''__Example__''': See demo site 'Text Resources' 
    23 == 10.2 Resource inheritance == 
     23== 11.2 Resource inheritance == 
    2424Specified 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. 
    2525