Solved

adding a attribute value to checkbox?

Posted on 2003-11-13
1
437 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now