|
-
Jan 11th, 2007, 11:18 PM
#1
Thread Starter
Junior Member
[02/03] Deleting a Row from database
i'm using VS.NET 2003 n SQL 2000
my proj needs to be on a 3 tier (1st time unfortunely)
does any1 have any sample of any delete function?
i'm trying to get mine to work tis way
-user select the id of the item to be deleted via a drop down list
-user click on the delete button
and then the sql delete statement will kick in and delete the row from the database, something like this
i tried lookin on the net n tis forum for some samples for codes for the 3 layers(data, business n presentation)
i either do not understand or have looked at the wrong places
pls help
thanks in advance
-
Jan 12th, 2007, 07:01 AM
#2
New Member
Re: [02/03] Deleting a Row from database
R u having a datagrid control that has the delete button?
Any way the best way to do this is write a store procedure in your SQL 2000. Use ADO.NET to connect to the database & invoke the stored procedure to delete your record. Make sure you pass the data to the stored procedure.
Check out this link...
http://moredotnet.googlepages.com/ado.net2
Cheers
-
Jan 12th, 2007, 11:26 AM
#3
Thread Starter
Junior Member
Re: [02/03] Deleting a Row from database
thx for the link
still not quite understand, lol. will try to
i'm not using a datagrid. i currently have problems to make my datagrid to appear(posted on another thread)
the whole thing is jus on a web form
i need to do the proj like a webby
-
Jan 15th, 2007, 09:44 AM
#4
Re: [02/03] Deleting a Row from database
I think your first step is to understand how three-tier applications are built:
http://www.c-sharpcorner.com/Tutoria...3TierAppPA.asp
After that, it's a matter of implementing some simple ADO.NET
-
Jan 16th, 2007, 02:50 AM
#5
Thread Starter
Junior Member
Re: [02/03] Deleting a Row from database
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|