input types on server side controls

时间秒杀一切 提交于 2019-12-04 06:43:57

问题


I'm using asp.net to build an 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. The problem is I'm using a server side text box control. Does anyone know how to make a server side control do this?


回答1:


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

or write it out like this in your aspx

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


来源:https://stackoverflow.com/questions/4258281/input-types-on-server-side-controls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!