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
hemant sagar
NA
1
2.4k
how to delete multiple records with checkboxes in a datagrid?
Jul 30 2010 8:00 AM
hello sir,
im trying to delete multiple records with checkboxes in datagrid but im getting an error
ie
Object reference not set to an instance of an object
at line
dgids = CType(i.FindControl("id"), Label).ToString()
here is my sample code
Dim bxschked As Boolean
Dim i As DataGridItem
Dim dgids As String = ""
For Each i In dg3.Items
Dim delchkitm As CheckBox
delchkitm = CType(i.FindControl("chkdel"), CheckBox)
If (delchkitm.Checked) Then
bxschked = True
dgids = CType(i.Cells(0).FindControl("id"), Label).ToString()
End If
Next
plz help me out ,im new to asp.net
thanks in advance
hemant
Reply
Answers (
1
)
hex data correct or not?
Hi i have a problem with open vb.exe file on browser i am getting error ''System.InvalidOperationException: StandardOut has not been redirected or the process hasn't started yet.''