问题
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