<p>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?</p>

Use a literal and set the variable in the code-behind.
```
```
<asp:Literal ID="litTotal" runat="server" />
```
```
code-behind:
```
```
litTotal.Text = GetTheSum();
```
```