Immediate help needed-Checkbox Checkedchanged event not firing

Posted by Sina under ASP.NET on 6/26/2012 | Points: 10 | Views : 6531 | Status : [Member] | Replies : 7
Hi i have a problem which seems mysterious..i have a checkbox in my page..and want to store value '1' in db if its checked else store 0. My problem is not only that the event is not firing but when i double click on the checkbox an event for checkedchange is initiated in the .cs page...Whats happening?thus now i have 3 events..only the last one is executed..i am confused..pl help me..

@Sina


Responses

Posted by: .Netlearner on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down
Can u make ur query clear with the code ? What are the three events u r using ?

Sina, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sina on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down
Its ok i got it..bt dnt knw wat was wrong!!!

@Sina

Sina, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhupentiwari on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down
make autopostback=true

Thanks n Regards
Bhupendra Tiwari

Sina, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muralidosscm on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down
<asp:CheckBox ID="CHK" runat="server" CssClass="CheckBox" AutoPostBack="true"/>

Regards
Muralidoss M

Sina, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Btrack124 on: 6/28/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Check whether you enabled AutoPostBack to true and then trigger the event
If You set AutoPostBack = true; it fires the pageload event
that means you request is sent to the server and the pages tries to relaod
Thanks
http://www.alacraft.com.au/


Roland Masten

Sina, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Johnbhatt on: 6/28/2012 [Member] Starter | Points: 25

Up
0
Down
Sina,

Please post your ASPX and CS code related to Checkbox and what event you firing. We will be glad to help you.

John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com

Sina, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 6/28/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
find attached file for your ref..
 Download source file

Sina, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response