Click here to Skip to main content
16,004,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to display the values in
0:00
format in a text box. If i type 1 it should display 1:00 and characters should not allowed .

What I have tried:

<asp:TableCell>
                     <asp:TextBox ID="txtOutage" runat="server" Width="147px" Visible="true" onkeydown="return (!(event.keyCode>=65) && event.keyCode!=32);"></asp:TextBox>
                      <asp:Label ID="lblout" runat="server" Text="In Hours" ForeColor="Red"></asp:Label>
                 </asp:TableCell>
Posted
Updated 3-Nov-17 2:28am
v4

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900