How to set FOCUS with RequiredFieldValidator

hounder

New Member
I am facing a problem. I have say 10 fields out of which 5 are mandatory. I have Required Validator controls attached to them. On SUBMIT if the vaslidator fails the message is being shown properly but the focus is still on SUBMIT button. <BR>Any comments??!!<BR><BR>Thanks<BR><BR>RahulI do not believe validation controls set focus. This would be a great feature though.. I mean.. you have the controlToValidate property. Wait Im going to check the sdk...<BR><BR>nope not there....<BR><BR>checking google...<BR><BR>Article found.<BR><BR>http://www.devx.com/dotnet/articles/rj121801/rj121801-1.aspLemme check the article..seems good.<BR>Yea . It would be good feature...<BR>There is a CustomFieldValidator But IT DOES NOT GET FIRED WHEN THE VALUE OF THE CONTROL IS BLANK so... <BR>May be somehow if we can Over LOad these validator controls.//!!<BR><BR>BTW Myself is Rahul and Am working with GE at INDIA<BR>[email protected]<BR>you can use a combination of validator controls to cover all the bases. for example, you mentioned using the CustomFieldValidator control but it doesn't react to a blank field. just add a RequiredFieldValidator control as well and it should cover everything.
 
Back
Top