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">
          <ContentTemplate>
<asp:TextBox runat="server" type="tel" ID="txtTel"></asp:TextBox>
<asp:DropDownList runat="server" ID="ddlCities" OnSelectedIndexChanged="checkOptions" AutoPostBack="True" />
        </ContentTemplate>
      </asp:UpdatePanel>

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

Any ideas? Thanks!
x-bender-xAsked:
Who is Participating?

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

x
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.

COBOLdinosaurCommented:
Which browser?  Please post the rendered HTML.

Cd&
0
Johny BravoCommented:
You can simly use an input element

Here is an example

<input type="tel" id="YourId" runat="server" />
0
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

0

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:
...
0
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
ASP.NET

From novice to tech pro — start learning today.