Textbox type="tel" empty after autopostback

Hi there...

I have a textbox with HTML5 type="tel" placed on an updatepanel.
On the panel is also a DropDownlist with an AutoPostback on change. After autopostback, the value in the textbox is gone....

The (stripped) code:

        <asp:UpdatePanel runat="server" ID="up">
<asp:TextBox runat="server" type="tel" ID="txtTel"></asp:TextBox>
<asp:DropDownList runat="server" ID="ddlCities" OnSelectedIndexChanged="checkOptions" AutoPostBack="True" />

If I change type="tel" to type="text", the problem is gone.

Any ideas? Thanks!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Which browser?  Please post the rendered HTML.

Johny BravoCommented:
You can simly use an input element

Here is an example

<input type="tel" id="YourId" runat="server" />
x-bender-xAuthor Commented:

Then here the code copied from the-site-which-name-I-shall-not-tell:

"You may want to leave "type" undeclared in your code "front". You can set this in the code behind (maybe in the Page_Init or Page_Load):"

this.Contract.Attributes.Add("type", "tel");

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
x-bender-xAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.