Solved

How to set aspx value in checkbox

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

773 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