Buttons not posting back

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.
 
P

Patrick Olurotimi Ige

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
 
G

Guest

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,
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top