Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I have a user coontrol which contains a text box and a checklistbox. Now I am using this usecontrol on aspx page. I want to check some values in checklistbox and display in text box and after i click outside the control anywhere on page the check box should get hide. I am doing this using asp.net 2.0,c# and javascript.
Can anyone tell me how to do this.

Thanks in advance

Nitin
Posted
Comments
senguptaamlan 19-May-11 7:13am    
please, explain what you have done (in code) and where you are facing the problem

1 solution

Using jquery in whatever trigger event you would do this

$("my control").hide();
 
Share this answer
 
Comments
Nitin K 19-May-11 10:13am    
I am using javascript only. Please provide me some javascript steps for that, if any
Thanks Mark.
[no name] 19-May-11 12:06pm    
That is JavaScript!

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