checkbox

WPF binding to My.Settings for radiobuttons (using vb.net)

Following the advice at http://stackoverflow.com/questions/204779/wpf-binding-my-settings-collection-to-combobox-items I was able to get binding working for checkboxes but not for radiobuttons? After saving MySettings the checkbox value is either true or false depending on if the checkbox is checked or not (as expected), while the rad...

What's the best way to show multiple checkboxes for multiple records in ASP.NET

The situation is as follows: I have a database with many RSS Categories, that in turn have many RSS Feeds. I want to display them in the following fashion: RSS Category 1 [ ] Rss Feed 1 [ ] Rss Feed 2 [ ] Rss Feed 3 RSS Category 2 [ ] Rss Feed 1 [ ] Rss Feed 2 [ ] Rss Feed 3 Where [ ] represents a checkbox. So each RSS Feed ...

Abstracting the interpretation of MVC checkboxes values received by the FormsCollection object

In ASP.NET MVC a checkbox is generated by the HtmlHelper code here: <%= Html.CheckBox("List_" + mailingList.Key, true) %> as this HTML: <input id="List_NEW_PRODUCTS" name="List_NEW_PRODUCTS" type="checkbox" value="true" /> <input name="List_NEW_PRODUCTS" type="hidden" value="false" /> In case you're wondering why is there an extra ...

How do I use a Checkbox on a form to add a record into a subform in Microsoft Office Access?

I have a database for a carpet company. I have a form which enables the user to make a quote, including choosing the customer, etc. There is a also subform dealing with the products and extras, with quantities and unit prices. To state whether the user requires fitting there is a checkbox. When ticked I would like fitting to be added in ...

How do I get the result of a checked checkbox?

I'm really new to HTML, but I can't find anywhere how to return the variable from a check box. I've figured out how to get variables from forms and inputs, but I don't know how to get them from check boxes. Basically, I want a check box that if checked, will return the value yes. If not checked, it doesn't have to return a value, but no ...

Assigning a value (or any other parameter) to asp:checkbox

i'm pretty sure it's not possible, but i'll throw this out there anyways. I have about 10 asp:checkbox controls on the page, and I need to go and update the database every time any of them gets checked/unchecked. Right now i have all of them tied to one event handler that fires on CheckedChanged, then i cast the sender to Checkbox a...

Html.Checkbox does not preserve its state in ASP.net MVC

I have this annoying issue with the checkbox created using the Html.Checkbox extension method. Apparently the state of the checkbox is not saved in case of a postback (due to a form validation error). Delving into the MVC code itself (System.Web.Mvc.Html.InputExtensions) I found out that the 'checked' property is determined by calling 'h...

ASP.Net - Help with datagrid/checkboxes/double submit

We have a simple datagrid. Each row has a checkbox. The checkbox is set to autopostback, and the code-behind has an event handler for the checkbox check-changed event. This all works as expected, nothing complicated. However, we want to disable the checkboxes as soon as one is checked to prevent a double submit i.e. check box checked...

Javascript and only one Checkbox - undefined

for (i = 0; i < document.checks.user.length; i++) //for all check boxes { if (document.checks.user[i].checked == true ) { document.checks.submit(); return 0; } } <body> <form action="" method=POST name="checks" ID="Form2"> I have a bike: <input type="checkbox" name="user" value="Bike" ID="Checkbox1"> <b...

In Javascript find if a checkbox is focused

In Javascript how can I tell if a checkbox has focus or not? I thought there would be a method or property called isfocused. But apparently not. By in focus I mean they've tabbed to it using the keyboard and at this point pressing space would check the box. ...

Reset checkboxes in datalist on click of button that is outside of datalist using c#

Reset checkboxes in datalist on click of button that is outside of datalist using c# ...

How do I create a Django form that displays a checkbox label to the right of the checkbox?

When I define a Django form class similar to this: def class MyForm(forms.Form): check = forms.BooleanField(required=True, label="Check this") It expands to HTML that looks like this: <form action="." id="form" method=POST> <p><label for="check">Check this:</label> <input type="checkbox" name="check" id="check" /></p> <p><input t...

asp:UpdatePanel with an ASP.NET checkbox trigger

What is the EventName property when I set up a ASP.NET checkbox control as an async postback trigger for an asp.net update panel? ...

What doesn't checkbox value = '1' work in this case?

I've been reading up on stackoverflow about checkboxes and setting their value to 1 to make them checked, but it doesn't seem to work in my case. I have a databinder eval expression that evaluates to 1 when my checkbox should be checkeed, and I've verified the generated page has at least one input checkbox with value=1 that is not displa...

Is a drag-over checkbox list useful?

A while ago I created a drag-over check box list which allows you to check many check boxes in a single gesture. Do you think it is viable and usable on the web where people might not know how to use it. The default behaviour still works for the individual check boxes. A demo of it can be found here: http://jonathanparker.com.au/Demos/...

Add app to the "Startup Items"

Some applications have a check button for "start at login"... How would you implement this? ...

Possible to dynamically add an asp:CheckBox control to a TableCell?

Hi everyone, In my .NET application I need to add a checkbox to each row in a dynamically created asp:Table. Is it possible to do that by dynamically creating an asp:CheckBox for each row and somehow put it inside a TableCell object? (In that case how?) Or do I need to replace the asp:table control with something else, like a Repeater ...

How to change the total credits selected live on a webpage with checkbox?

Hey my webpage is having a checkbox where students have to select the modules they wish to select. Is it possible that I can update the total module credits selected live on the webpage when the student clicks on a checkbox? Or when the student clicks submit can I show a message like please select 60 credits? ...

How to undo the last checked checkbox?

Hi I created a javascript function to check if the number of modules selected is greater than a given value. So each time a checkbox is called the function is called, and the function goes through all the checkboxes and calculates the total to see if it's greater. But the problem is when the user checks the checkbox and if the total cred...

Bind a Javascript function to TreeView CheckBox from ServerSide ASP.Net

I have a treeView with ShowAllCheckBox property to true, I need to bind a javascript function to each checkbox on their click event. How to do this can any one suggest ? ...