473,378 Members | 1,429 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

determine CheckBox's checkedChange status dynamically?

I have an array of CheckBoxes which dynamically display in a web form.
How to detect and determine which CheckBox' check status changed? For
example,
Array(i, j) from checked to Unchecked and Array(k,j) from unchecked to
checked.

Thank you.

David
Nov 19 '05 #1
4 4749
Just handle checkbox checked event. Close autopostback.
And let user to click a button and post back page to server.
--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"david" <da***@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
I have an array of CheckBoxes which dynamically display in a web form.
How to detect and determine which CheckBox' check status changed? For
example,
Array(i, j) from checked to Unchecked and Array(k,j) from unchecked to
checked.

Thank you.

David

Nov 19 '05 #2
What does it look like? Does the following work?

Private Sub CheckBox_CheckedChanged(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles _
CheckBox.CheckedChanged
................
End Sub

David
"Yunus Emre ALPĂ–ZEN [MCAD.NET]" wrote:
Just handle checkbox checked event. Close autopostback.
And let user to click a button and post back page to server.
--

Thanks,
Yunus Emre ALPĂ–ZEN
BSc, MCAD.NET

"david" <da***@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
I have an array of CheckBoxes which dynamically display in a web form.
How to detect and determine which CheckBox' check status changed? For
example,
Array(i, j) from checked to Unchecked and Array(k,j) from unchecked to
checked.

Thank you.

David


Nov 19 '05 #3
Should it

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"david" <da***@discussions.microsoft.com> wrote in message
news:35**********************************@microsof t.com...
What does it look like? Does the following work?

Private Sub CheckBox_CheckedChanged(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles _
CheckBox.CheckedChanged
................
End Sub

David
"Yunus Emre ALPÖZEN [MCAD.NET]" wrote:
Just handle checkbox checked event. Close autopostback.
And let user to click a button and post back page to server.
--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"david" <da***@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
>I have an array of CheckBoxes which dynamically display in a web form.
> How to detect and determine which CheckBox' check status changed? For
> example,
> Array(i, j) from checked to Unchecked and Array(k,j) from unchecked to
> checked.
>
> Thank you.
>
> David


Nov 19 '05 #4
It is not compiled, since in the statement
"Handles CheckBox.CheckedChanged "
CheckBox is unknown. Because I have dynamically declared the array of
checkboxes, so the idenfiers of those checkboxes are not predefined.

David
"Yunus Emre ALPĂ–ZEN [MCAD.NET]" wrote:
Should it

--

Thanks,
Yunus Emre ALPĂ–ZEN
BSc, MCAD.NET

"david" <da***@discussions.microsoft.com> wrote in message
news:35**********************************@microsof t.com...
What does it look like? Does the following work?

Private Sub CheckBox_CheckedChanged(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles _
CheckBox.CheckedChanged
................
End Sub

David
"Yunus Emre ALPĂ–ZEN [MCAD.NET]" wrote:
Just handle checkbox checked event. Close autopostback.
And let user to click a button and post back page to server.
--

Thanks,
Yunus Emre ALPĂ–ZEN
BSc, MCAD.NET

"david" <da***@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
>I have an array of CheckBoxes which dynamically display in a web form.
> How to detect and determine which CheckBox' check status changed? For
> example,
> Array(i, j) from checked to Unchecked and Array(k,j) from unchecked to
> checked.
>
> Thank you.
>
> David


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephen | last post by:
I have the following asp:checkbox as a row in my datagrid. and im trying to write code on the onCheckedChanged event of it. The code im trying to write is incorrect as im getting build errors....
3
by: Moe Sizlak | last post by:
Hi, Can I check a checkbox by default based on the value returned from a database? for example if the value (dr("frm7value")) returned from a db field is "YES" how can I check the checkbox by...
2
by: Maziar Aflatoun | last post by:
Hi everyone, I am reading and displaying data rows from my database where the first column contains the Status checkbox. I like to enable my users to change the status of individual rows by...
1
by: Bill44077 | last post by:
I am dynamically adding a checkbox in a gridview and I find there are several things that I cannot figure out how to address. 1. The width of the checkbox column is very wide. I've tried adding...
5
by: pleaseexplaintome | last post by:
Hi I need to determine the most recent check box that was checked. Let's say I have 5 checkboxes. CB 1 is checked and I then check CB 5. How do I know CB 5 was just checked, regardless of the fact...
7
by: Srikanth Ram | last post by:
Hi, I'm creating a PHP application. In this a dynamic table with the fields in the database is generated in a page. I have placed a checkbox in each row of the table to approve/disapprove...
8
by: Sid | last post by:
I hope someone could help me with this. I am trying to setup a criteria to decide when to allow/not allow user to click on the check box. logically it looks simple but I am not able to...
1
by: spiderman2 | last post by:
When the page is first accessed, certain HTML elements are dynamically created. The checkboxes all have the name "chkBox". There is a special "checkAll" checkbox which when checked or unchecked, does...
2
by: livmacca | last post by:
Hi, I am trying to create a web page whereby I first read data from Oracle Database and display the records out on the data grid. The data displayed is in order of one attribute say 'A' meaning...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.