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

How many languages are supported by .NET at present time?

285


how to retrieve property settings from xml .config file.

547


What is meant by ispostback in asp net?

544


What are the different authentication modes in asp.net?

520


What are the event handlers that we can have in global.asax file?

533






What is the use of view state?

535


What is the use of service provider?

588


Define a web service in .net?

616


What is a user developed application?

527


How you will manage the state of ASP.NET controls?

570


How to prevent client side validation from the ASP.NET validation controls?

578


In the Repeater control which way you can edit?

651


Elaborate differentiation between Cache and Application?

539


How does output caching work in ASP.NET?

502


Which method do you use to enforce garbage collection in .net?

520