473,385 Members | 2,029 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.

How to trigger the CheckBox1_CheckedChanged event by change the checked value by code?

Hi

If I change the checked value of the checkbox by code, I can not trigger the
CheckedChanged event of a checkbox control. Is there any way to implement it?

Thank you very much!

David

Nov 18 '05 #1
3 6140
You have to make sure the checkbox "AutoPostBack" property is True.
"David" <ed******@gmail.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
Hi

If I change the checked value of the checkbox by code, I can not trigger the
CheckedChanged event of a checkbox control. Is there any way to implement it?

Thank you very much!

David

Nov 18 '05 #2
Thanks,
but I don't think you understood my question. I want trigger the event when I change the value by code not user click operation.
Sure I have set autopostback to true, other the event would not fire even I use the mouse to click the checkbox.

David
"news.microsoft.com" <ne**@microsoft.com> wrote in message news:OI**************@TK2MSFTNGP15.phx.gbl...
You have to make sure the checkbox "AutoPostBack" property is True.
"David" <ed******@gmail.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
Hi

If I change the checked value of the checkbox by code, I can not trigger the
CheckedChanged event of a checkbox control. Is there any way to implement it?

Thank you very much!

David

Nov 18 '05 #3
I think what you can do is write a new function and move the code in CheckedChanged event into the new function.
Call this function when you change the value of the checkbox and in CheckedChanged event.

"David" <ed******@gmail.com> wrote in message news:u2**************@TK2MSFTNGP09.phx.gbl...
Thanks,
but I don't think you understood my question. I want trigger the event when I change the value by code not user click operation.
Sure I have set autopostback to true, other the event would not fire even I use the mouse to click the checkbox.

David
"news.microsoft.com" <ne**@microsoft.com> wrote in message news:OI**************@TK2MSFTNGP15.phx.gbl...
You have to make sure the checkbox "AutoPostBack" property is True.
"David" <ed******@gmail.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
Hi

If I change the checked value of the checkbox by code, I can not trigger the
CheckedChanged event of a checkbox control. Is there any way to implement it?

Thank you very much!

David

Nov 19 '05 #4

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

Similar topics

2
by: Trevor Fairchild | last post by:
I am trying to create a very minimal auditing system for a series of databases. I am in the process of writing Update triggers for 5 Tablse. I will write a trigger for each table-the trigger's...
2
by: R. Rajesh Jeba Anbiah | last post by:
I have Googled a lot, but couldn't still find the answer... I could see, I can trigger the "click" event like: button_object.Click() But, I need to trigger the onChange() of select options. I...
2
by: ezra epstein | last post by:
Hi, I've got a table: <code language="SQL"> CREATE TABLE "common"."dynamic_enum" ( "pk_id" integer DEFAULT nextval('"common"."pw_seq"') , "enum_type" ...
3
by: dave | last post by:
I have half a dozen web form radio buttons on a web form. Each of them is set to postback=true. However, if for instance radiobutton1 is already selected and the user selects it again, it performs...
2
by: Owin | last post by:
Hi all, I've created an User control. It's an extension of a textbox wich has some extra properties so that validation becomes a lot faster. The control wordks great if autopostback is on. When...
5
by: Bob | last post by:
In a datagridview (vs2005, VB.net) I have two columns that are checkboxes. I need to check that only one of the two can be checked. Its not permissible to have the two selected to true, but they...
5
by: rn5a | last post by:
Consider the following user control which resides in Address.ascx: <script runat="server"> Public Property Address() As String Get Address = txtAddress.Text End Get Set(ByVal value As String)...
13
by: Screaming Eagles 101 | last post by:
Hi, I have a solution containing two projects - main project with main form containing a statusstrip - second project containing a usercontrol. I have added the usercontrol to my main form,...
1
by: daonho | last post by:
I tried to use javascript to trigger up the button click function when user press enter key from the textbox. This function work fine with a single button click such has login page. However, if the...
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
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.