I am trying to use it to validate a textbox in a form view however I
get the message:
Unable to find control id 'Purchase_Date' referenced by the
'ControlToValidate' property of 'RangeValidator1'
but as far as i can see I have the ID of the textbox?????
Re: Validting selected date from a calendar ... Unfortunately, as far as I know, Calendar controls cannot be validated by CustomValidators--but you can build your own validator control.... I'd recommend using the ObjectBrowser and exploring System.Web.UI.WebControls.BaseValidator to get an idea of the object before you get started. ... (microsoft.public.dotnet.framework.aspnet.webcontrols)
Re: Validator Controls ... Each validator control has an EnableClientScript method, to enable the check to happen via JS in IE. ... Also, you should always check Page.IsValid in button events, etc. in the server code before processing, because the JS checks do not happen in ... (microsoft.public.dotnet.framework.aspnet)
asp.net setfocus after validation not working ... i am trying to set focus to a specific control depending on the ... outcome of a validator control and it is not working. ... (microsoft.public.dotnet.framework.aspnet)
Re: asp.net setfocus after validation not working ... public static void SetInitialFocus(System.Web.UI.Control control) ...IntialFocus to it."); ... >i am trying to set focus to a specific control depending on the ... > outcome of a validator control and it is not working. ... (microsoft.public.dotnet.framework.aspnet)