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

Required validator not working when code assigned

Status
Not open for further replies.

JasonNevin

Programmer
May 26, 2005
29
GB
I have been having a problem getting my required field validators working. When I click on my 'submit' button it posts back and runs the on_click vb .net event but doesn't seem to validate the page. What is even more spooky is that when I remove the on_click events from my code so that the button has no event assigned it performs the validation fine.

Any ideas?

Thanks.
 
how many fields are there in the page???

Known is handfull, Unknown is worldfull
 
It varies. On some forms there is just one, on others 15.
 
try one thing, add the following code in your ASPX file (inside form code):

<input type="text" style="display:none" />

now does it work? i am guessing that the problem is in the single field environment...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top