Solved

adding a attribute value to checkbox?

Posted on 2003-11-13
1
441 Views
Last Modified: 2008-03-17
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)
0
Comment
Question by:trevoray
1 Comment
 
LVL 23

Accepted Solution

by:
naveenkohli earned 500 total points
ID: 9740992
For check box, the "value" attributes is if the box is selected or not.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question