本文介绍了如何在文本框中应用多个特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨 我有一个表格,一个文本框我想在该文本框中应用特殊字符,数字等。 例如:
Hi I have one form in that , one textbox i want to apply special char,number,etc., in that textbox only. for example:
<form id="form1" runat="server"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <div> <asp:TextBox ID="Txt1" runat="server"></asp:TextBox> <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" FilterType="Custom" ValidChars="A" TargetControlID="Txt1" /> <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Custom" ValidChars="012" TargetControlID="Txt1" />如何申请 提前付款。
How to apply thanks in advance.
推荐答案看一下这个 blog [ ^ ] - 它有几个例子 ...你可以适应自己的需要。查看可以更改 FilterType 的方式。在你的情况下你可能需要做一些像 Have a look at this blog[^] - it has several examples ... that you can adapt to your own needs. See the way the FilterType can be changed. In your case you probably need to do something like FilterType="Numbers, Custom" ValidChars=".@+-"
或者你想接受的字符列表可能是
Or whatever the list of characters you want to accept might be
更多推荐
如何在文本框中应用多个特殊字符
发布评论