•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 427,223 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,283 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 562 | Replies: 1
![]() |
•
•
Join Date: May 2008
Posts: 13
Reputation:
Rep Power: 1
Solved Threads: 0
check\uncheck all checkboxes in datalist control in asp.net with vb.
getting error in chkSelect.Attributes.Add("onclick", "javascript:return Validate(this.name)")
Object reference not set to an instance of an object.
give me the suggesion where i have to update my code
Protected Sub DataList8_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles DataList8.ItemDataBound
If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then
Dim chkSelect As New CheckBox
chkSelect = DirectCast(e.Item.FindControl("chkSelect"), CheckBox)
chkSelect.Attributes.Add("onclick", "javascript:return Validate(this.name)")
End If
end subgetting error in chkSelect.Attributes.Add("onclick", "javascript:return Validate(this.name)")
Object reference not set to an instance of an object.
give me the suggesion where i have to update my code
Last edited by Tekmaven : Jul 18th, 2008 at 5:16 pm. Reason: Code tags
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the ASP.NET Forum
- Previous Thread: Asp.Net
- Next Thread: Help Check browser


Linear Mode