473,385 Members | 2,044 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,385 software developers and data experts.

CheckedChanged Event doesn't work?

Hi,

I work with ASP.NET v2 (visual web dev 2005 express) and,
when i want to use the CheckedChanged Event of a checkbox,
it doesn't work.

I want to enable a button when checkbox is checked, and
disable the button when it's unchecked.
But not working, even if you make other things.

Is it normal?

Thank yall!
Nov 18 '05 #1
3 3584
Jos
Jump Off! wrote:
Hi,

I work with ASP.NET v2 (visual web dev 2005 express) and,
when i want to use the CheckedChanged Event of a checkbox,
it doesn't work.

I want to enable a button when checkbox is checked, and
disable the button when it's unchecked.
But not working, even if you make other things.

Is it normal?


Did you set AutoPostback=True?

Did it work in ASP.NET 1.1?

--

Jos
Nov 18 '05 #2
yes i put autopostback true :/
i dont know cause i have not v1.1.. only 2beta !
if someone could try ;)

bye
-----Original Message-----
Jump Off! wrote:
Hi,

I work with ASP.NET v2 (visual web dev 2005 express) and,
when i want to use the CheckedChanged Event of a checkbox,
it doesn't work.

I want to enable a button when checkbox is checked, and
disable the button when it's unchecked.
But not working, even if you make other things.

Is it normal?


Did you set AutoPostback=True?

Did it work in ASP.NET 1.1?

--

Jos
.

Nov 18 '05 #3
Jos
Jump Off! wrote:
yes i put autopostback true :/
i dont know cause i have not v1.1.. only 2beta !
if someone could try ;)


You can download v1.1 at www.asp.net.

Did you use databinding for your checkboxlist?
If so, you should not databind on postback, like this (VB):
If(Not Page.IsPostBack) Then
' databinding goes here
End If

If this doesn't help, show us your code.

--

Jos
Nov 18 '05 #4

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

Similar topics

3
by: Patrick De Ridder | last post by:
What is the effect of the following line? checkBox1_CheckedChanged(null,null); Thanks, Patrick.
5
by: Greg Hurlman | last post by:
I've got a very simple ASCX page, where once someone finishes a section and clicks the "Next >" button, the section they just finished is disabled, and the next section appears below it, and so on....
3
by: Piotr Strycharz | last post by:
Hi, I have a Repeater with CheckBox in one of its columns. In ItemDataBound handler I'm doing: chk.CheckedChanged += new EventHandler(chk_CheckedChanged). The chk_CheckedChanged handler is...
2
by: dilip.movva | last post by:
Hi, In the ItemDataBound of my datagrid I am creating a checkbox dynamically. I have the eventhandler defined for CheckedChanged of the check box. The event is not firing. The grid is bound in the...
3
by: Alex | last post by:
i got a form with some checkboxes and they are set to be checked on design time... when the program loads it fires the CheckChanged event for every one of them.... there is any way to avoid this??...
6
by: jonefer | last post by:
It seems that the following code should work - (if not why is the event there?) (Do I need some sort of client side script to awaken it?) Private Sub chkRefresh_CheckedChanged(ByVal sender As...
9
by: jeff | last post by:
New VB user...developer... Situation...simplified... - I want to wrap a pre and post event around a system generated where the pre-event will always execute before the system event and the...
0
by: Paul | last post by:
Hello, I have a datagridview with a checkbox in a column, and I want to detect when the user change the value of the checkbox in the event CheckedChanged, but I only detect that the value is...
15
by: RobG | last post by:
When using createEvent, an eventType parameter must be provided as an argument. This can be one of those specified in DOM 2 or 3 Events, or it might be a proprietary eventType. My problem is...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.