Not really a version 2 question but...
Define an asp:label control, with an id of lblData for example. In your code block:
if (myVar == "something")
lblData.Text = "Some text here";
lblData.Text = "Some different text here";
If you have many options use a switch statement instead of an if/else.
Joe (Microsoft MVP - XML