All Questions
1,385
questions
-1
votes
1
answer
42
views
How do I stop an ASP.NET CheckboxList from deleting itself when it has no items? [closed]
I have a CheckBoxList, whose items are dynamically updated. In the case where all the items are removed from the list, the whole list is disappearing entirely, including the CSS tied to it, which ...
0
votes
1
answer
97
views
Is there a way to create a drop down list with check boxes as list items? (asp.net)
I was looking to create a drop-down list mechanism with check boxes with days of the week so that you could select which days of the week you wanted.
I haven't seen much on this, and you cannot just ...
0
votes
1
answer
47
views
ASP.NET CheckBox to call code behind after js confirm() returns true
i would like to achieve if the checkbox is checked or unchecked, prompt a confirmation message. after that only perform code behind logic to update database. But then i realised that the __doPostBack ...
0
votes
1
answer
32
views
Button click outside gridview is not prompting message for correct row in C# ASP.NET
I have a asp.net Gridview where there are multiple rows. Also outside gridview there are 2 buttons such as Approve and Reject respectively. And there are checkbox in every rows.
So, what I want is, IF ...
0
votes
0
answers
33
views
Change boolean in ajax in ASP.NET MVC
I want to write Ajax code for my view so that if I change the the check box, the RegisterSituation of rows that were chosen is changed in database.
My model class is:
public class OstadCourse
{
[...
0
votes
1
answer
223
views
When asp.net CheckBox control is changed, how to fire client side AND server side events
I have an asp.net Checkbox inside a gridview.
It has some javascript in OnClick to confirm that the operator wishes to proceed.
It also has some server side code on the OnCheckedChanged event.
The ...
0
votes
1
answer
66
views
asp.net check/uncheck all checkboxes inside gridview
I have this gridview:
<asp:GridView DataKeyNames="IdUtente" runat="server" ID="grdUtenti" AllowPaging="True" CssClass="tablestyle" ...
1
vote
2
answers
56
views
Update database when an checkbox or button clicks
I have a seperate column in my gridview and also I have added an checkbox/button. So when an user checks or clicks the checkbox or button it should update my oracle database. When an user checks the ...
0
votes
1
answer
34
views
How can I give check box in gridview a value that is not from the data source?
I have this gridview on an aspx page (Web form):
<asp:GridView ID="GridView" runat="server" showheader=false BorderStyle="None"CellPadding="4" GridLines=&...
0
votes
1
answer
59
views
How can I check a checkbox in gridview based on a condition?
I have gridview on an aspx page (web form) with a check box and Id (the Id's are from a table of Id's). In the code behind the page (c#), I get a list of Id's. I want that all of the check boxes that ...
0
votes
1
answer
45
views
How can I change the state of checkboxs from a gridview in c#?
I have a gridview on an aspx page (WebForm) that has item name and checkbox. In the code behind in c#, I get a list of items names and I want that the checkboxes next to the items I already have will ...
0
votes
0
answers
29
views
how can I collect the value(s) of a class and pass it/them to the controller in asp.net with @Html.CheckBox or @Html.CheckBoxFor
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.IdDepartamento)
</th>
...
-1
votes
1
answer
243
views
I set checkbox.checked in the beginning as true, and it remains true even if I uncheck it
I have 6 checkboxes in a web form:
<input type="checkbox" name="mammals" id="mammals" runat="server" checked"/> Mammals <br />
<input type=&...
0
votes
1
answer
44
views
Does unchecking an asp.net web forms checkbox undo the CheckedChanged event?
I have CheckedChanged event handler that hides a row from a gridview when the checkbox is checked. Now when I uncheck the checkbox, nothing happens. I actually want the row that gets hidden to be ...
0
votes
1
answer
99
views
How to get specific checkbox function per row in a gridview C# ASP.net
I am making a system that have many checkboxes per cell in a gridview. I want to be able to use individual functions for each of the checkboxes.
enter image description here
For example, if the row 1 ...