Must be some thing simple.
The aspx file has 3 buttons: on click of each, there is javascript validation -> set a hidden field -> submit.
Post back reads the hidden field and figures out which button was clicked and performs the set operation. One such is insert a record in db. Others re-build the page.
Whenever I access the insert option: 2 records are inserted in the db: I have only 1 insert stmt ?
Why is this happening twice ??. Right now I am testing this and nobody else has access to this application.
The table has a date-time field with system date as default, the 2 inserts occur with in a span of a new micro seconds:
2006-03-27 09:56:54.077
2006-03-27 09:56:55.280
The aspx file has 3 buttons: on click of each, there is javascript validation -> set a hidden field -> submit.
Post back reads the hidden field and figures out which button was clicked and performs the set operation. One such is insert a record in db. Others re-build the page.
Whenever I access the insert option: 2 records are inserted in the db: I have only 1 insert stmt ?
Why is this happening twice ??. Right now I am testing this and nobody else has access to this application.
The table has a date-time field with system date as default, the 2 inserts occur with in a span of a new micro seconds:
2006-03-27 09:56:54.077
2006-03-27 09:56:55.280