Hi,
I have a checkbox (AllofNevada) that should enable/disable a checkboxlist (of counties in Nevada). The javascript code I have works. I placed the code:
This is fine in the beginning but once the user selects 'save' and the code:
frmTDMaintenanc e.UpdateItem(Tr ue) runs the onclick event is lost. You can see it in the rendered code originally and then it is gone after the update item. I can comment out the frmTDMaintenanc e.UpdateItem(Tr ue) and the onclick event still runs? Any ideas why? A work around? I tried adding the attributes.add code after the updateitem code but that didn't work either.
Thanks
I have a checkbox (AllofNevada) that should enable/disable a checkboxlist (of counties in Nevada). The javascript code I have works. I placed the code:
Code:
Protected Sub frmTDMaintenance_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles frmTDMaintenance.Load
CType(frmTDMaintenance.FindControl("AllofNevada"), CheckBox).Attributes.Add("onclick", "fnAllofNevada();")
End Sub
frmTDMaintenanc e.UpdateItem(Tr ue) runs the onclick event is lost. You can see it in the rendered code originally and then it is gone after the update item. I can comment out the frmTDMaintenanc e.UpdateItem(Tr ue) and the onclick event still runs? Any ideas why? A work around? I tried adding the attributes.add code after the updateitem code but that didn't work either.
Thanks
Comment