When page is 'refreshed', calculation occurrs again...

  • Thread starter Thread starter Trint Smith
  • Start date Start date
T

Trint Smith

I tried IsPostBack and got the error "object not ...reference". Is
there a way to make sure the button MUST be pressed to call function and
protect it from 'refresh'?
Thanks,
Trint

..Net programmer
(e-mail address removed)
 
You could probably set something in the viewstate when the calculation
occurs (a boolean field = true), then on your calculation code check that
this value is "false", the only way it can be reset is to click the button
to recalculate
 
Back
Top