Wrox Programmer Forums
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 16th, 2007, 03:54 PM
Registered User
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default edit page in browser view. why?

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>
Old March 26th, 2007, 06:45 AM
Friend of Wrox
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar


It seems that this is related to the improper rendering of html in the browser. Have you tried it on other browsers as well?

The data which you are entering should be going into text box actually, due to improper rendering, it only appears that you are able to enter text between label and textbox. This can be verified by putting a simple javascript there[ for the events of textbox like keydown] to find out.

Hope it helps !!

Anubhav Kumar

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form view control, Authorized edit only nuttylife2 ASP.NET 2.0 Professional 0 July 10th, 2006 07:57 PM
Altova XML Spy 2005 Edition - open 'Browser' view crmpicco XML 1 March 16th, 2006 04:04 PM
View Source from ActiveX Browser Object echovue Access 4 November 1st, 2005 01:13 PM
How to view MSAccess Reports in the browser minic Classic ASP Components 0 December 14th, 2004 02:42 AM
View MS Access Reports in Browser minic Classic ASP Databases 0 December 14th, 2004 02:38 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.