Click here to Skip to main content
16,020,512 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want checkbox to be checked when i select an item in a dropdownlist.Could anyone help me out?
Thanks.
Posted

1 solution

Handle the selectedindexchange event of the dropdown either with JavaScript or code-behind and check the box. What part do you need help with?
 
Share this answer
 
Comments
n@vin 15-Mar-12 8:31am    
CODE BEHIND
[no name] 15-Mar-12 9:08am    
OK. What part are you having difficulty with. Handling the event? Finding the selected item? Checking the box? If you want help you need to be clear. This isn't the place for 20 questions.
n@vin 16-Mar-12 2:33am    
actually i'm having dis requirement in .ascx page. when i refresh the page its loading .aspx page. then how can i get a checkbox checked when i select a dropdown item? and also if i give autopostback to true,its reloading .aspx page.
[no name] 16-Mar-12 7:02am    
checkbox.Checked = true;

If you could not do this you have no business being in this career.
n@vin 16-Mar-12 8:10am    
i understood dat u cant answer it.
anyway thanq.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900