tags:

views:

53

answers:

1

I have the following ASP.NET markup:

<td align="right" valign="top" style="width: 130px">
    Answer: <asp:Label 
                 ID="lblanswer" 
                 runat="server" 
                 CssClass="errorMessage" 
                 ForeColor="Red"
                 Text="*">
            </asp:Label>
</td>

I want it to say "Answer:*" with only the asterisk in red.

How to do that if I want Answer to be inside the <asp:label/>.

+1  A: 

How about:

TextBox textBox1 = new TextBox();
textBox1.PasswordChar = '*';
George Stocker