Re: Client Side - intercepting postback for form.

From: Steve Lutz (slutz_at_nospam.comcast.net)
Date: 03/22/05


Date: Tue, 22 Mar 2005 09:03:21 -0500

Thanks Brock,

I knew I was missing something simple..

:-)

Steve

"Brock Allen" <ballen@develop.com.i_hate_spam_too> wrote in message
news:101451632469141644169136@msnews.microsoft.com...
> You can also use Page.RegisterOnSubmitStatement
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
> > Hello all,
> >
> > I am writing a webcontrol that is very client side Javacript
> > intensive. I have successfully used RegisterClientScriptBlock to get
> > the Javascript onto the page and the control works just wonderfully.
> > However, I am having a problem with Postback's.
> >
> > My control needs to do some some "cleanup" before the form is posted
> > back to the server. The actions need to be performed client-side, as
> > it formats some items and sticks them into hidden form fields.
> >
> > My goal is to have the page run a javascript function whenever the
> > form is submitted. There must be something I'm missing because I
> > cannot seem to find any way of doing this reliably.
> >
> > I want the control to be "droppable" onto the page, so I don't want to
> > have to modify the forms "onsubmit" actions, which does work, but
> > again, not ideal.
> >
> > Can someone point me in the right direction..
> >
> > Thanks in advance
> > Steve
>
>
>