遮罩输入 [英] mask input

查看:91
本文介绍了遮罩输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用jquery和ajax功能在Visual Studio中屏蔽和验证输入?

how do you mask and validate input in visual studio using jquery and ajax functionality?

推荐答案

jQuery和AJAX都是使用Javascript的方式. Javascript具有正则表达式支持. ASP.NET(您说的是C#,所以我假设ASP.NET)具有内置的控件,这些控件可以验证输入,即使您不想使用这些控件,也可以将其添加到页面中,然后查看源代码看看他们是如何工作的. AJAX意味着您可以调用服务器以检查输入是否有效(如果需要),这就是AJAX的作用.
jquery and AJAX are both just ways of using Javascript. Javascript has regex support. ASP.NET ( you DID say C#, so I assume ASP.NET ) has controls built in that will validate input, even if you don''t want to use those, you could add them to a page, and look at the source to see how they work. AJAX means you can make a call to the server to check if input is valid, if you need to, that''s what AJAX does.


这篇关于遮罩输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆