嗨,我正在用.NET开发一个网页。我有一个文本框,通过扫描他们的身份证输入用户ID。 [英] Hi, I am developing a web page in .NET. I have a text box where the users id is entered by scanning their Id card.

查看:103
本文介绍了嗨,我正在用.NET开发一个网页。我有一个文本框,通过扫描他们的身份证输入用户ID。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用.NET开发一个网页。我有一个文本框,通过扫描他们的Id卡输入用户ID。它不应该允许用户手动输入他的Id,但它应该能够在用户扫描他的卡时打印其中的Id。我怎么能这样做?

Hi, I am developing a web page in .NET. I have a text box where the users id is entered by scanning their Id card.It should not allow the user to manually enter his Id but it should be able to print the Id in it when the user scans his card. How can I do this?

推荐答案

也就是说,根本不需要文本输入控件。你可以简单地使用一些不可编辑的元素(例如< p> )来编写Id,除非你想要隐藏这些信息的全部或部分,这将是最好的主意。您可以仅在请求时向用户提供Id读取。安全第一。



-SA
That said, you don't need the text input control at all. You can simply write the Id using some non-editable element (such as <p>), unless you want to hide all or part of this information, which would be the best idea. You could provide the Id read to the user only on request. Safety first.

—SA


这篇关于嗨,我正在用.NET开发一个网页。我有一个文本框,通过扫描他们的身份证输入用户ID。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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