Click to See Complete Forum and Search --> : event trigered twice


rbruch
02-28-2007, 07:04 AM
Hi, after developing a simple web page with no problems, suddently every event on the page is triggered twice : when I insert new record it's inserted Twice, same when modifiing. Also every OnClick button event.

Can't find documentation about it, Any Idea?

sirpelidor
02-28-2007, 11:38 AM
it could be somewhere in the ur code, your method execute twice or you accidentally put the same sql stmnt somewhere within the application.

what i normally do is:
1) force 1 entry point through out the code.
2) run debugger, and locate where SqlCommand fire twice.
3) (this is silly but i saw it happens before) make sure your sql code is not execute within page_load, and if it does...put (!this.ispostback)