Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 January 30th, 2005, 09:04 AM
Registered User
Join Date: Dec 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default help: check duplication when do update in datagrid


  i've a editable datagird which let the user update the table.
 when the user click the update button , it will check whether the data it enter in the name field is already in the database, if it already exits ten it will return false.. else true.

i've tried string checkCmd = "SELECT Count(*) FROM tblConstType WHERE constName = " + "'" + role + "'";

using this, but if the result is "1" , it means 2 things, one is its own record (ther user din modify the data in this(name) textbox) or there is another record in the database. so if it is its own record, i would like to let the datagrid continue updating the record.

i'd try b4 to get the initial value of the textbox in the datagrid EditCommand (but seems fail currently..) to allow update action happen when it is its own record.. so i wonder is there any way to perform this task? ( allowing update when it is its own record")

really hope to get some help here.. thanks...

Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid.update() and DataAdapter.Update aarunlal ASP.NET 2.0 Professional 2 February 23rd, 2006 11:41 PM
Check box in DataGrid Baby_programmer ASP.NET 1.0 and 1.1 Professional 1 March 3rd, 2005 08:26 PM
Check box in DataGrid Baby_programmer ASP.NET Espanol 0 March 3rd, 2005 05:29 AM
Using check boxes in datagrid ractim ADO.NET 2 September 8th, 2004 08:28 AM

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