Button Autopostback

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I need to have a button cause an autopostback. How can I do this?
I have textboxs on webform that supply values for a calc but not all will
get filled at any particular time. So I need a button that signals once user
is done to do an autopostback. How can I do this?

Thanks,
JJ
 
Hi JJ,

If you're using a button, it should do a postback each time you click on it.
Hope I understood your question correctly.


Best Regards
 
See when I click on a textbox that has autopostback set to true. The page
will postback of course but in a button their is no autopostback property. So
what your saying is button control automatically posts back? Ok maybe I'm
missing the picture here. See in each dropdownlist control I have a changed
value event that fires to do some calcs. In order to fire those off a
postback has to happen but I want the postback to happen one time. I figured
I would use the button control and when clicked would generate an postback
but that doesn't happen. It just enters into the onclick event for the button
with no postback to page. What am I doing wrong?

Thanks,

JJ
 
are you using a ASP.NET Button control or the HTML button (i.e. <input
type=button>)?
HTML buttons wont have postback.
WebControl buttons do.
 
Hi JJ,

When the onclick event is executed and your webform is reloaded, a postback
has already occured. The dropdownlist changed events should have been
executed within the process.

When you say it enters the the onclick button event with no postback to
page, do you mean the dropdownlist changed events are not even executed? Or
were they executed but you are not getting the results you want?



Best Regards
 
Back
Top