Link to home
Start Free TrialLog in
Avatar of x-bender-x
x-bender-x

asked on

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!
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Which browser?  Please post the rendered HTML.

Cd&
Avatar of Johny Bravo
Johny Bravo

You can simly use an input element

Here is an example

<input type="tel" id="YourId" runat="server" />
ASKER CERTIFIED SOLUTION
Avatar of x-bender-x
x-bender-x

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of x-bender-x

ASKER

...