Link to home
Start Free TrialLog in
Avatar of trevoray
trevoray

asked on

adding a attribute value to checkbox?

i am trying to add the following values in code behind to my checkbox. the javascript one works fine, but the value one does not add. can anyone tell me what i am doing wrong?

thanks!

CheckBox1.Attributes.Add("onClick", "journals(this,this.checked)")
CheckBox1.Attributes.Add("value", CType(pjournallabel.Text, Integer) + CType(ejournallabel.Text, Integer))
CheckBox2.Attributes.Add("onClick", "journals(this,this.checked)")
CheckBox2.Attributes.Add("value", ejournallabel.Text)
ASKER CERTIFIED SOLUTION
Avatar of naveenkohli
naveenkohli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial