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="ch eckOptions " AutoPostBack="True" />
</ContentTemplate>
</asp:UpdatePanel>
If I change type="tel" to type="text", the problem is gone.
Any ideas? Thanks!
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="ch
</ContentTemplate>
</asp:UpdatePanel>
If I change type="tel" to type="text", the problem is gone.
Any ideas? Thanks!
You can simly use an input element
Here is an example
<input type="tel" id="YourId" runat="server" />
Here is an example
<input type="tel" id="YourId" runat="server" />
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
...
Cd&