Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control the positioning of requiredfieldvalidator message

Status
Not open for further replies.

piratefan

Programmer
Jul 20, 2003
195
US
I have a form that requires a bunch of requiredfieldvalidators. Problem is the message is displayed underneath the textbox. I have a few dropdownlist controls also, and not exactly sure where the message would go there, if an invalid entry is made.
It really throws the look of the form off with this error messages underneath each textbox anyway. If I could put that message inside the textbox, that would be great. Not sure how to handle a dropdownlist control error.
Any suggestions, greatly appreciated.
Thanks.
 
Never tried it, but I wonder if you could set let's say the TextBox1.Text = Validator1.Value? Usually, the positioning of the text from the Validator control is right where you place it on the page? Is that not the case?

regards,
Brian
The problem with doing something right the first time is that nobody appreciates how difficult it was.
 
Thanks Brian. Had another thought though. If I put the validator text in the text box, I assume they would have to delete the validator text to put their text in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top