27. March 2014 11:19
/
Administrator
/
/
Comments (0)
According to Ross Gitting's new artcile,
How we can do better on Aboriginal imprisonment. He threw a few interesting numbers:
- 2.5% of the Australian adult population is Aborigines
- 26% of all adult Australian prisoners is Aborigines
- $275/day to keep an adult in jail
- $800 million a year is paid from taxpayer = Australian adult population * 2.5% * 26% * $275 * 365
Could the government use the money wisely?
ae16793d-d24e-4339-92fd-ea14264f07ea|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
12. March 2014 09:39
/
Administrator
/
/
Comments (0)
If you have checkout grunt ready project, follow the steps below to setup Grunt:
- Download and install Node.jst from http://nodejs.org/
- Download and install Ruby from http://rubyinstaller.org/
- Install npm:
Command line x:>npm install -g grunt-cli - Check Path contains C:\Ruby200-x64\bin
Command line x:>gem install compass - Finally build it:
Command line x:>grunt build
67dede99-54ff-435c-a307-3016f61c6877|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
6. March 2014 15:51
/
Administrator
/
/
Comments (0)
Sitecore - Customise Result of XPath Builder
d10cccf8-eb43-4c26-a3fe-ca331f32886f|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags :
3. March 2014 16:27
/
Administrator
/
/
Comments (0)
029c0541-16ff-44ea-9ed6-a0d4f563782a|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags :
3. March 2014 10:20
/
Administrator
/
/
Comments (0)
To embed something into user control, but have an error like:
Here's the cure to it, and the thing embedded within the user control will neither show nor complaint an error.
[ParseChildren(false)]
[PersistChildren(true)]
public partial class ProductTile : System.Web.UI.UserControl
{
ParseChildrenAttribute
The ParseChildrenAttribute class allows you to specify parsing logic for a custom server control by marking the server control with the ParseChildrenAttribute metadata attribute.
Marking your server control with the metadata attribute ParseChildren(true) instructs the parser to interpret the elements that are contained within the server control's tags as properties. In this scenario, the ChildrenAsProperties property is true.
Marking your server control with the metadata attribute ParseChildren(true,"<Default Property>") sets the DefaultProperty property to the name of the property that is passed into the attribute.
Marking your server control with the metadata attribute ParseChildren(false), the default value, instructs the parser to interpret the elements that are contained within the server control's tags as content that will be parsed with an associated ControlBuilder that is, as controls. In this scenario, the ChildrenAsProperties property is false.
PersistChildrenAttribute:
The PersistChildrenAttribute is used in combination with the ParseChildrenAttribute to determine how nested content of a control is interpreted. If PersistChildrenAttribute is true and ParseChildrenAttribute is false, the nested content contained within an ASP.NET server control is persisted as controls. If PersistChildrenAttribute is false and ParseChildrenAttribute is true, the nested content is persisted as properties of the server control. For more information about using attributes, see Extending Metadata Using Attributes.
caea7768-f17a-45d6-a4dc-2f2b49a9c380|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04