asp.net文本框无效 [英] asp.net textbox not working

查看:92
本文介绍了asp.net文本框无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个asp.net文本框,

第一个文本框包含名称,第二个文本框包含Bootstrap的时钟选择器控件。

在Web视图中,所有控件都在工作很好,但在移动设备中,第一个文本框控件没有显示手机的虚拟键盘。

但是我得到了焦点事件...



请帮助

感谢高级

I have two asp.net text box,
First text box contain name and second one contain clock picker control of Bootstrap.
In web view all controls are working fine but in mobile devices first text box control not shows the virtual keyboard of mobile phone.
but I got the on focus event...

Please help
Thanks in advanced

推荐答案

这不是ASP.NET Web应用程序的工作!这也是Web浏览器(或任何其他主机应用程序)的工作,也可以将键盘加载并呈现给用户。由于onfocus事件被执行,这意味着ASP.NET正在完成它的工作。



通过虚拟键盘,你的意思是你自己构建键盘吗?如果是这样,那么检查它是否显示在界限内页。在这种情况下的问题是您可能硬编码键盘的位置。因此,您的键盘可能会显示(或显示在屏幕上),但可能超出当前视口的范围。



您应该考虑尝试找到答案,单击输入字段时键盘不会显示在{您手机}的浏览器中。谷歌可能会给你一个答案,或者你可能会在网上找到一个已经解决(或等待解决)问题的帖子。
That is not a job of ASP.NET web application! That is the job of the web browser (or any other host application) to load and present the keyboard to the user too. Since the "onfocus" event is executed it means ASP.NET is doing its job.

By virtual keyboard, do you mean you build a keyboard yourself? If so, then check if it is shown in the bounds of the page. The problem in such cases is that you may hardcode the location of the keyboard. Due to which, your keyboard may be shown (or present on screen) but may be out of bounds of your current view port.

You should consider trying to find an answer for, "keyboard not showing in {your phone}'s browser when clicking an input field". Google may give you an answer, or you may find an already solved (or waiting to be solved) problem thread on the internet.


这篇关于asp.net文本框无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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