Req.FieldValidator & ValidationSummary
-
I am using Req.FieldValidator for 6 field in a form.Then i dropped a ValidationSummary to show the list free fields .. But i see both Req.FieldValidator & Val.Summary messages when i press submit.How may i hide Req.FieldValidator messages and show only Val.Summary list? i am new at vb.net.I was coding at asp.Now i am using asp.net but i have these kind of silly problems while using vb.net:( Thanx to repliers.. --junior coder--
-
I am using Req.FieldValidator for 6 field in a form.Then i dropped a ValidationSummary to show the list free fields .. But i see both Req.FieldValidator & Val.Summary messages when i press submit.How may i hide Req.FieldValidator messages and show only Val.Summary list? i am new at vb.net.I was coding at asp.Now i am using asp.net but i have these kind of silly problems while using vb.net:( Thanx to repliers.. --junior coder--
hey man.... its easy job...U need to do the following steps to get ur required Results. 1- change the Display Property of RequiredValidator=none 2- Romove the Erorr message From Summary if u had given any. how it works... when You Use Summary at the Pag, the validators at the same page with Display Property set to none will automatically show their messages in the summary. Each RequiredValidator should contain its own message. no need to give any Error message in Summary. though u can change the Display Property of Summary to List or ETC.. as u like to see the errors. it would be fine if u put the text "Please Correct the Following" or whatever u want... and show all the erros in list like this :)Please Correct the Following... -------here goes list of erros shown by validators .Invalid Input .Too short Password .UserId is Required best of luck.......................... munawar