I have noticed a strange thing that happens occasionally when I'm developing on localhost and was hoping someone could explain why. I have a simple
vb.net form and sometimes it allows me to add text to the page when viewing through the browser. The form has a string followed by a textbox for input, for example
< PHONE_NUMBER:|______| >
Sometimes when attempting to click on the textbox it will insert the cursor BETWEEN the string and textbox and allow me to add text to the page. It looks something like this:
< PHONE_NUMBER:insertedText|______| >
Normally I'm not able to do this but it happens occasionally and only seems to do so on localhost. This is not urgent, but can someone please explain this to me? Thanks in advance.
Here's a snippet of code:
<tr><td align="right" colSpan="1">
<asp:label id="Label3" runat="server"><strong>Phone Number:</strong><br><em>example: 512-438-5555</em></asp:label></td>
<td style="HEIGHT: 36px" colSpan="1">
<asp:textbox id="tbPhone" tabIndex="7" runat="server" Width="100"></asp:textbox> ext.
<asp:textbox id="tbExt" tabIndex="8" runat="server" Width="40px"></asp:textbox></td>
<td><asp:label id="lblPhone" runat="server" ForeColor="Red" Font-Italic="True" Font-Bold="True" Font-Size="X-Small"></asp:label>
<asp:requiredfieldvalidator id="fvalPhone" runat="server" Font-Bold="True" ControlToValidate="tbPhone" errormessage="Please enter a phone number." display="Dynamic"></asp:requiredfieldvalidator>
<asp:regularexpressionvalidator id="evalPhone" runat="server" Font-Bold="True" ControlToValidate="tbPhone" errormessage="Please enter a valid phone number." ValidationExpression="((\d{3} ?)|(\d{3}-))\d{3}-\d{4}" Display="Dynamic"></asp:regularexpressionvalidator>
<asp:regularexpressionvalidator id="evalExt" runat="server" Font-Bold="True" ControlToValidate="tbExt" errormessage="Please enter a valid extension number." ValidationExpression="\d*" Display="Dynamic"></asp:regularexpressionvalidator></td>
</tr>