Skip to main content

All Questions

Tagged with
-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 ...
Strill's user avatar
  • 237
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 ...
Alex Mo's user avatar
  • 29
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 ...
Chew Hong Yu's user avatar
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 ...
hud's user avatar
  • 4,713
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 { [...
amir's user avatar
  • 25
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 ...
Eric Staples's user avatar
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" ...
Gabriele Cozzolino's user avatar
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 ...
Rakshitha R's user avatar
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=&...
KK2007's user avatar
  • 21
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 ...
KK2007's user avatar
  • 21
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 ...
TUK's user avatar
  • 51
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> ...
user21153032's user avatar
-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=&...
Mike Radunski's user avatar
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 ...
Kay's user avatar
  • 1
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 ...
Dezmond's user avatar

15 30 50 per page
1
2 3 4 5
93