Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 12th, 2004, 02:48 AM
Authorized User
 
Join Date: Jun 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dorothee
Default 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..

 
Old June 14th, 2004, 06:25 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

You can use by checking this that if the record is not there then insert other wise update the record

Love 4 all





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert/Update problem soheil BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 November 15th, 2007 11:18 AM
Update all checkboxes in GridView using one Submit dba123 ASP.NET 2.0 Basics 0 April 23rd, 2006 07:15 PM
Dynamic Insert without Submit button key value jfergy Classic ASP Databases 9 January 17th, 2006 01:49 PM
insert,update trigger rolle SQL Server 2000 3 September 29th, 2005 08:41 PM
submit to insert data and then click [BACK] vincentc Classic ASP Basics 0 September 9th, 2003 10:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.