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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s