I use client side validation when I can. In this case, I need server
side because I need to use a server side object that queries the
database and applies some business logic.
On Feb 29, 2:17*pm, Manish <Man...@discussions.microsoft.com> wrote:
> Hi Don,
>
> I think you can try the client side validation for your customValidations in
> order to avoid postback.
>
> Please refer to the link below if this helps.
>
> http://www.c-sharpcorner.com/UploadF...3222006013805A...
>
> Regards,
> Manishwww.ComponentOne.com
>
>
>
> "Don" wrote:
> > I have a page with a GridView that uses an ObjectDataSource. *The user
> > can change some parameters on the page and refresh the GridView with a
> > button click. *One of the parameters has a CustomValidator that uses
> > server side logic to determine if the value is valid.
> > When the value is invalid my validator displays but the GridView still
> > refreshes. *I think this is because a GridView bound to an
> > ObjectDataSource always refreshes when any postback is performed. *How
> > can I stop it?
>
> > Thanks,
> > * *Don- Hide quoted text -
>
> - Show quoted text -