如何在文本框中应用多个特殊字符

编程入门 行业动态 更新时间:2024-10-27 19:26:53
本文介绍了如何在文本框中应用多个特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨 我有一个表格,一个文本框我想在该文本框中应用特殊字符,数字等。 例如:

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

更多推荐

如何在文本框中应用多个特殊字符

本文发布于:2023-10-24 15:04:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1524260.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   框中   特殊字符   文本   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!