Question: In a spring configuration, what is the difference between using name vs id? I'm aware that XML restricts the "id" attribute to be unique in a document and limits the characters for using in the id. But otherwise when declaring a bean, what is the difference between using the "name" attribute vs the "id" attribute?

Answer: 
Use a literal and set the variable in the code-behind.

```
<asp:Literal ID="litTotal" runat="server" />

```

code-behind:

```
litTotal.Text = GetTheSum();

```
You can't reference the control in the code-behind because it's in the LayoutTemplate. Maybe with FindControl, but I haven't tried that yet.