开发者

input types on server side controls

开发者 https://www.devze.com 2023-01-26 07:19 出处:网络
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 defa

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?


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

or write it out like this in your aspx

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号