Solved

How to set aspx value in checkbox

Posted on 2014-07-24
2
239 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…

746 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