PC Review


Reply
Thread Tools Rate Thread

can't delete record when using objectdatasource and GridView

 
 
Rote Rote
Guest
Posts: n/a
 
      1st Oct 2007
Hi Guys, I have a simple Edit,Update Gridview and i'm using
ObjectDatasource with dataset generated and TableAdapters I can do an
update no problem.
But can't get my delete to work. When i look at the parameters sent to
the store proc it all contains NULL.
I came across a solution using setting DataKeyNames but i don't have a
primary Key ID on the table.The parameters i have are
theyear,themonth,code and i want to delete based on those paramters
which i have in my
DeleteParameters tag. How can i accomplish a delete in such sceanrio?
Thanks in Advance




*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't do a delete when using Objectdatasource with a GridView rote Microsoft ASP .NET 1 4th Oct 2007 08:48 AM
.NET 2.0 Delete using GridView and ObjectDataSource Barry L. Camp Microsoft VB .NET 1 9th Jan 2007 07:16 AM
GridView ObjectDataSource =?Utf-8?B?cGJsYWNrOTQ1NQ==?= Microsoft ASP .NET 1 28th Nov 2006 09:12 AM
Record count required when using GridView and ObjectDataSource J055 Microsoft ASP .NET 9 12th Apr 2006 02:12 PM
gridview, objectdatasource family Microsoft ASP .NET 0 22nd Dec 2005 03:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 PM.