Solved

How to set aspx value in checkbox

Posted on 2014-07-24
2
245 Views
Last Modified: 2014-08-09
I have checkbox in asp.net. with dev express controls  if i click on that dev expres check box it will go to java script validation.In Java script ,if validation fails

I want to uncheck the checkbox in asp.net.

can u please help me how to set check box value in java script?
0
Comment
Question by:mannevenu26
2 Comments
 
LVL 28

Expert Comment

by:sammySeltzer
ID: 40217123
It is not at all clear, at least to me,  what you are trying to do.

Could you please clarify?
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 500 total points
ID: 40217522
You need to share your javascript code and the checkbox.
But here's a simple example:
<asp:CheckBox ID="CheckBox1" runat="server" onclick='validate(this);' />

function validate(cb) {
    //if validation fails set to false
       cb.checked = false;
}

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 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

17 Experts available now in Live!

Get 1:1 Help Now