Insert and update with one submit
Hi
Using Dreamweaver with ASP.Net.
I would like to use only one button for update or insert .
I have created the MM_insert and MM_update but I do not know how to write the if statement and where to put it...
Something like
if record in dataset exists or = true
then run mm_update
if record in dataset doesn't exist
then run mm_insert
Please help..
|