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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Validators 1

Status
Not open for further replies.

glyn6

Programmer
Nov 2, 2009
561
GB
I've got a required field and a regular expression validator on the same text box, both of which work. The only problem is the asterisk marking the invalid field doesn't line up with the side of the text box. i.e.

|=====| this is a textbox...
If the textbox is empty then the validator looks like this
|=====| *
If the regex is invalid then the validator looks like this
|=====| *

Even if the required field validator is not displayed, it still has a width which pushes the regex validator over.

I've tried styling it but had no luck, any ideas how I can remove the width/make invisible/remove from being displayed the required field validator if there's text in the box?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top