Posted on: 7/10/2014 2:28:53 AM | Views : 439

How can I pass a dynamically created control to a javascript function and get the id of the object that was changed?  The code below shows 'undefined'
Dim theCb As New CheckBox() theCb.Text = "Check All" theCb.TextAlign = TextAlign.Right theCb.Attributes.Add("onchange", "CheckBox_Change(this)") theRCell.Controls.Add(theCb) function CheckBox_Change(sender) { alert($(sender).attr('id')); }

Go to the complete details ...