| | |
check\uncheck all checkboxes in datalist control
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2008
Posts: 17
Reputation:
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
ASP.NET Syntax (Toggle Plain Text)
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 sub
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
Last edited by Tekmaven; Jul 18th, 2008 at 6:16 pm. Reason: Code tags
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: Asp.Net
- Next Thread: Help Check browser
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox child click commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose feedback flash flv form formatdecimal forms formview gridview homeedition hosting iframe iis javascript jquery list listbox login menu microsoft mono mouse mssql multistepregistration nameisnotdeclared news numerical objects order panelmasterpagebuttoncontrols radio ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql-server sqlserver2005 suse textbox tracking typeof unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webarchitecture webdevelopemnt webservice xml youareanotmemberofthedebuggerusers





