Buttons not posting back

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

Guest

Hi,

All of a sudden, all my Button Controls and Image Button Controls are not
posting back data. I have Click event and event handlers in the code. Page
itself is not posting back.

Whereas Linkbuttons are working fine.
 
Murali Krishna Siruvuru,
It seems a little bit wierd if you say ur linkButtons
work and other don't!!
What could be the problem is try checking if u have the aspnet_client
folder under ur WWWROOT folder first.
Or maybe u have tampered with it and it might need u reinstalling
it.Hope it helps
patrick
 
Murali Krishna Siruvuru,

Make sure that your code behind page should contain the
"Protected Withevents Objects for the COntrols "

for Example i have one image button named "imgbtnAuditInfo".

for each and every server controls the Protected events object will be
initialized at the Top most of the Pages class.

If there is no Protected WithEvents please type the same for the respective
Controls

" Protected WithEvents imgbtnAuditInfo As
System.Web.UI.WebControls.ImageButton "


All the best

Murali Krishna Siruvuru,
 
I have Click event and event handlers in the code. Page
itself is not posting back.

The other guys have mentioned about backend code. I don't know if this is
the case, but if your click handlers are in javascript on the client you
should make sure that your onSubmit or onClick handlers do not mistakenly use
event.returnValue = false; If so your forms will not submit, refresh or go
anywhere.

Regards,

Geoff
 
Back
Top