TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mark Fenech
NA
82
69k
Deleting An item from a List Box from a Database
Apr 24 2011 10:19 AM
Hi Im trying to delete an item from the listbox which the user selects here you can find my code and a screenshot tnx.
Code:
public void deleteEvent(ListBox list_event)
{
int i = list_event.SelectedIndex;
ds.Tables["tblEvents"].Rows[i].Delete();
da.Update(ds.Tables["tblEvents"]);
}
Im getting Object reference not set to an instance of an object Exception.
ScreenShot: http://i53.tinypic.com/ad1209.jpg
Reply
Answers (
11
)
Backup of SQL Server in specified location
how to extract text from pdf document and put it in powerpoint doc. automatically