Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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

hi,

  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...

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:37 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.