Asp.net Label vs Literal

It looks like I have fallen victim to an asp.net no-no.

I have always used a label in my forms when I want to have some text that is updated by the code behind.  Turns out that I should probably be using literals.

Even more, I didn’t even realize that the label object allows you to specify a text element that will gain focus when the label is clicked.  Nice.

Leave a comment