简体   繁体   English

服务器端控件上的输入类型

[英]input types on server side controls

I'm using asp.net to build an ipad webapp. 我正在使用asp.net构建一个ipad webapp。 I know that using input type="email" will cause the keyboard layout on the ipad to change to handle email input more easily than the default. 我知道使用input type="email"会导致ipad上的键盘布局更改为比默认设置更容易处理电子邮件输入。 The problem is I'm using a server side text box control. 问题是我正在使用服务器端文本框控件。 Does anyone know how to make a server side control do this? 有谁知道如何使服务器端控制这样做?

textBox.Attributes.Add("type", "email")

或者在你的aspx中写出来

<input type="email" id="emailTextBox" name="emailTextBox" runat="server" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM