Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: SQL (VB) Deleting Command
05-01-2007, 10:14 AM #1
SQL (VB) Deleting Command
I have a problem. I have inserted a SQL Database with tables in my ASP.NET page and i have added a delete command.
The problem is when i press the delete button i get an error:
Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified.
DeleteCommand must be specified. But how?
Please Help me!Exp:
05-01-2007, 07:48 PM #2
- Join Date
- Jun 2005
- Near Chicago, IL, USA
- Thanked 32 Times in 31 Posts
If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/