If i have a web page, and one web user control, where in web
page contains a text box, and web user control have check
box, if i place a web user control in the webpage, when i
check the check box, the out put should show it is checked
or not. How we can do this?

Answer Posted / mithun

Define a EventHandler in the usercontrol. in the user control when the checkbox checkedchanged event is fired, raise the usercontrol event. in checkchanged event set a propety.

in the web page, user control shld fire the event, get the property value in usercontrol and set it to textbox.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why and where this web.config file is used?

591


How do session tokens work?

510


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

619


We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?

433


What is asp.net globalization?

495






Explain how can we access static variable?

545


What kind of data can be stored in viewstate?

530


Why asp.net is used?

555


What are the 3 levels at which content pages can be attached to Master Page?

577


Differentiate between globalization and localization.

536


3. What goals do you have in your career?

1418


What is routing in MVC?

592


Which namespace is used by ado.net?

562


Disable browser cache for entire ASP.NET website?

661


What is the life cycle of web page?

521