Everton1Blue
Technical User
Hello
I have a small Web form Link that looks like this:
When a user does not complete the form correctly, an error message appears on screen as follows:
That's because there is not enough room to display the error. The best way, I think, of resolving this issue is to display the error message in the form field itself, but how would I do that, please? The relevant code I have for the Name field, for example, is this:
Thanks for any help.
I have a small Web form Link that looks like this:

When a user does not complete the form correctly, an error message appears on screen as follows:

That's because there is not enough room to display the error. The best way, I think, of resolving this issue is to display the error message in the form field itself, but how would I do that, please? The relevant code I have for the Name field, for example, is this:
Code:
[b]<p>[/b]<asp:Label ID="Name" Text="Name"></asp:Label>
<asp:TextBox ID="your_name"></asp:TextBox>[b]</p>[/b]
"RequiredFieldValidator1" controlToValidate="your_name" ForeColor="#FF6666" ErrorMessage="Please complete the Name field"></asp:RequiredFieldValidator>
Thanks for any help.