开发者

problem in Labels with asterisk! [closed]

开发者 https://www.devze.com 2023-01-19 09:37 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous,开发者_StackOverflow中文版 vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its cu
It's difficult to tell what is being asked here. This question is ambiguous,开发者_StackOverflow中文版 vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

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/>.


How about:

TextBox textBox1 = new TextBox();
textBox1.PasswordChar = '*';
0

精彩评论

暂无评论...
验证码 换一张
取 消