Hi Michal,

Make sure your Regular Expression Validator has EnableClientScript set to
true. This should cause the validator to display its error message (as well
as keep the form from being submitted) via client-side script instead of
generating a round trip back to the server.


--
Ray Dixon - Microsoft MVP
[email]ray@NOSPAM.greeble.com[/email]
(remove NOSPAM. from my e-mail address for a direct reply)


"Michal Januszczyk" <michal_januszczyk@hotmail.com> wrote in message
news:049601c34f59$1d43c490$a601280a@phx.gbl...
> I use SQL Server built-in full text search.
>
> The application uses ASP.NET and ADO.NET.
>
> When user is entering data into the form he is expected
> to enter valida data. i.e when he enters valid data ge
> gets results (or empty result set)
> If the user has enetered invlid tokens, SQL Server causes
> that some exceprions are thrown, what is natural.
>
> The question is: has anybody seen a regullar expression
> (I plan to use RegularExpression Validator) that would
> validate user input phrase just at the form submit, not
> at the very end, in the database layer?. This would save
> database resources, processing power, and would have many
> other advantages. (Why should the whole processing be
> involved if it would return error anyway ?)
>
> Thanx for any suggestions
> Michal Januszczyk
>
>
>