Home All Groups Group Topic Archive Search About

.NET 2.0 ImageButton control not submitting like form button

Author
22 Feb 2006 9:45 PM
Aaron Scholl
I am trying to use an image button as my submit button.  It fires the click
event properly and it does all of my processing, but when it is done it does
not clear the form like a form submit would normally do.

All I can find is that the imagebutton control for 2.0 should have a
UseSubmitBehavior property on it.  It does not.  I see it on the button
control but not  on the image button control.

All of our forms are going to be using image controls for an e-commerce site
so I really need to figure this out ASAP.
--

-----
Aaron Scholl

Author
23 Feb 2006 4:48 PM
Phillip Williams
Aaron,

The button control is not any different than the ImageButton when it comes
to clearing the contents of your form.  You will have to do that
programmatically; e.g. when you save the value of a control, clear the
control’s property value.
Show quoteHide quote
"Aaron Scholl" wrote:

> I am trying to use an image button as my submit button.  It fires the click
> event properly and it does all of my processing, but when it is done it does
> not clear the form like a form submit would normally do.
>
> All I can find is that the imagebutton control for 2.0 should have a
> UseSubmitBehavior property on it.  It does not.  I see it on the button
> control but not  on the image button control.
>
> All of our forms are going to be using image controls for an e-commerce site
> so I really need to figure this out ASAP.
> --
>
> -----
> Aaron Scholl